mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 03:51:05 +01:00
Fix crash when bonemealing weaping and twisting vines, fix weaping vine growth
This commit is contained in:
parent
8f53074b58
commit
afc270195a
1 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ minetest.register_node("mcl_crimson:twisting_vines", {
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif clicker:get_wielded_item():get_name() == "mcl_bone_meal:bone_meal" then
|
elseif clicker:get_wielded_item():get_name() == "mcl_bone_meal:bone_meal" then
|
||||||
return mcl_bone_meal.use_bone_meal(itemstack, clicker, {under=pos})
|
return mcl_bone_meal.use_bone_meal(itemstack, clicker, {under=pos, above=pos})
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
@ -228,7 +228,7 @@ minetest.register_node("mcl_crimson:weeping_vines", {
|
||||||
},
|
},
|
||||||
node_placement_prediction = "",
|
node_placement_prediction = "",
|
||||||
_on_bone_meal = function(itemstack, placer, pointed_thing)
|
_on_bone_meal = function(itemstack, placer, pointed_thing)
|
||||||
return grow_vines(pointed_thing.under, math.random(1, 3),"mcl_crimson:weeping_vines")
|
return grow_vines(pointed_thing.under, math.random(1, 3),"mcl_crimson:weeping_vines", -1)
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
local pn = clicker:get_player_name()
|
local pn = clicker:get_player_name()
|
||||||
|
@ -250,7 +250,7 @@ minetest.register_node("mcl_crimson:weeping_vines", {
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif clicker:get_wielded_item():get_name() == "mcl_bone_meal:bone_meal" then
|
elseif clicker:get_wielded_item():get_name() == "mcl_bone_meal:bone_meal" then
|
||||||
return mcl_bone_meal.use_bone_meal(itemstack, clicker, {under=pos})
|
return mcl_bone_meal.use_bone_meal(itemstack, clicker, {under=pos, above=pos})
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue