fixed -- issue reported by LissoBone

This commit is contained in:
Alexsandro Percy 2022-10-17 18:39:11 -03:00
parent 8a7b0b633c
commit 71429e358b

View File

@ -70,12 +70,12 @@ function steampunk_blimp.load_water(self, player)
if water then if water then
if self._water_level < steampunk_blimp.MAX_WATER then if self._water_level < steampunk_blimp.MAX_WATER then
local itemstack = ItemStack(item_name .. " 1") local itemstack = ItemStack(item_name .. " 1")
inv:remove_item("main", itemstack) --inv:remove_item("main", itemstack)
local indx = item_name:find('bucket:bucket') local indx = item_name:find('bucket:bucket')
if indx then if indx then
itemstack = ItemStack("bucket:bucket_empty") itemstack = ItemStack("bucket:bucket_empty")
inv:add_item("main", itemstack) --inv:add_item("main", itemstack)
player:set_wielded_item(itemstack) player:set_wielded_item(itemstack)
end end