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})
|
minetest.set_node(pos,{name = water})
|
||||||
end
|
end
|
||||||
if not placer or not minetest.is_creative_enabled(placer:get_player_name()) then
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user