mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 19:02:26 +01:00
Clear item meta when turning fishbucket to empty bucket
before it simply set a different itemstring, now it creates a whole new itemstack
This commit is contained in:
parent
66322a873b
commit
f14bfdc0cd
@ -33,7 +33,7 @@ local function on_place_fish(itemstack, placer, pointed_thing)
|
||||
minetest.set_node(pos,{name = water})
|
||||
end
|
||||
if not placer or not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
itemstack:set_name("mcl_buckets:bucket_empty")
|
||||
itemstack = ItemStack("mcl_buckets:bucket_empty")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user