Fix crash for dummy bucket

This commit is contained in:
kilbith 2015-05-22 22:51:17 +02:00 committed by Vanessa Ezekowitz
parent e041ca9115
commit 493e74ab42

View File

@ -344,8 +344,9 @@ if minetest.get_modpath("bucket") then
minetest.chat_send_player(user:get_player_name(), "No room in your inventory to add a filled bucket!")
end
return wielditem
else
return original_bucket_on_use(itemstack, user, pointed_thing)
else if original_bucket_on_use then
original_bucket_on_use(itemstack, user, pointed_thing)
else return end
end
end
})