From 95e904acebd3598b7c1a93badf6eb402c78eaff2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Feb 2017 04:20:25 +0100 Subject: [PATCH] Fix nether wart issues --- mods/mcl_nether/nether_wart.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/mcl_nether/nether_wart.lua b/mods/mcl_nether/nether_wart.lua index 63bfed3432..fcbeba6eb1 100644 --- a/mods/mcl_nether/nether_wart.lua +++ b/mods/mcl_nether/nether_wart.lua @@ -86,8 +86,11 @@ minetest.register_craftitem("mcl_nether:nether_wart_item", { if chk ~= 0 and chk ~= nil then -- Check if node above soil node allows placement 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"}) - if not minetest.setting_get("creative_mode") then + + if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end return itemstack