0
0
Fork 0

Fix bucket stacks Wuzzy/MineClone2#745 by removing leftovers of metadata usage

This commit is contained in:
kay27 2020-08-02 19:46:09 +04:00
parent afc6a1bb0f
commit 125840c9e4
1 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ minetest.register_craftitem("mcl_buckets:bucket_empty", {
-- Fill bucket, but not in Creative Mode
if not minetest.is_creative_enabled(user:get_player_name()) then
new_bucket = ItemStack({name = liquiddef.itemname, metadata = tostring(node.param2)})
new_bucket = ItemStack({name = liquiddef.itemname})
end
minetest.add_node(pointed_thing.under, {name="air"})
@ -274,7 +274,7 @@ minetest.register_craftitem("mcl_buckets:bucket_empty", {
local new_bucket
if liquiddef ~= nil and liquiddef.itemname ~= nil and (dropnode.name == liquiddef.source_take) then
-- Fill bucket
new_bucket = ItemStack({name = liquiddef.itemname, metadata = tostring(dropnode.param2)})
new_bucket = ItemStack({name = liquiddef.itemname})
sound_take(dropnode.name, droppos)
collect_liquid = true
end