fix buckets getting lost if hotbar is full to the left of the bucket

This commit is contained in:
Vanessa Ezekowitz 2015-06-14 02:41:20 -04:00
parent 87c334a9e5
commit 6bf41d0159

View File

@ -336,7 +336,6 @@ if minetest.get_modpath("bucket") then
if pointed_thing.type == "node" and minetest.get_node(pointed_thing.under).name == "homedecor:well" then
if inv:room_for_item("main", "bucket:bucket_water 1") then
itemstack:take_item()
user:set_wielded_item(itemstack)
inv:add_item("main", "bucket:bucket_water 1")
else
minetest.chat_send_player(user:get_player_name(), "No room in your inventory to add a filled bucket!")