1
0
Fork 0

Fix cactus definition

This commit is contained in:
Wuzzy 2017-01-12 07:13:58 +01:00
parent de5f3d5618
commit 6dbce33373
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ grow_cactus = function(pos, node)
height = height+1
pos.y = pos.y+1
end
if height < 4 then
if height < 3 then
if minetest.get_node(pos).name == "air" then
minetest.set_node(pos, {name="default:cactus"})
end

View File

@ -882,7 +882,7 @@ minetest.register_node("default:cactus", {
tiles = {"default_cactus_top.png", "default_cactus_bottom.png", "default_cactus_side.png","default_cactus_side.png","default_cactus_side.png","default_cactus_side.png"},
is_ground_content = true,
stack_max = 64,
groups = {snappy=1,choppy=3,flammable=2},
groups = {oddly_breakable_by_hand=2,},
sounds = default.node_sound_wood_defaults(),
paramtype = "light",
node_box = {