1
0
Fork 0

Fix nether wart issues

This commit is contained in:
Wuzzy 2017-02-10 04:20:25 +01:00
parent 6efbb5f42f
commit 95e904aceb
1 changed files with 4 additions and 1 deletions

View File

@ -86,8 +86,11 @@ minetest.register_craftitem("mcl_nether:nether_wart_item", {
if chk ~= 0 and chk ~= nil then if chk ~= 0 and chk ~= nil then
-- Check if node above soil node allows placement -- Check if node above soil node allows placement
if minetest.registered_items[minetest.get_node(pointed_thing.above).name].buildable_to then if minetest.registered_items[minetest.get_node(pointed_thing.above).name].buildable_to then
-- Place nether wart
minetest.sound_play({name="default_place_node", gain=1.0}, {pos=pointed_thing.above})
minetest.set_node(pointed_thing.above, {name="mcl_nether:nether_wart_0"}) minetest.set_node(pointed_thing.above, {name="mcl_nether:nether_wart_0"})
if not minetest.setting_get("creative_mode") then
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item() itemstack:take_item()
end end
return itemstack return itemstack