mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +01:00
Merge pull request 'Fix wither dupe' (#2417) from fix_wither_dupe into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2417 Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
commit
825da03ba3
1 changed files with 5 additions and 2 deletions
|
@ -46,6 +46,9 @@ end
|
||||||
local wither_head = minetest.registered_nodes["mcl_heads:wither_skeleton"]
|
local wither_head = minetest.registered_nodes["mcl_heads:wither_skeleton"]
|
||||||
local old_on_place = wither_head.on_place
|
local old_on_place = wither_head.on_place
|
||||||
function wither_head.on_place(itemstack, placer, pointed)
|
function wither_head.on_place(itemstack, placer, pointed)
|
||||||
|
local n = minetest.get_node(vector.offset(pointed.above,0,-1,0))
|
||||||
|
if n and n.name == "mcl_nether:soul_sand" then
|
||||||
minetest.after(0, wither_spawn, pointed.above)
|
minetest.after(0, wither_spawn, pointed.above)
|
||||||
old_on_place(itemstack, placer, pointed)
|
end
|
||||||
|
return old_on_place(itemstack, placer, pointed)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue