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
1 changed files with 4 additions and 3 deletions

View File

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