mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-04 13:47:12 -04:00
implementation change
This commit is contained in:
parent
312f499325
commit
b6910cdbd4
1 changed files with 1 additions and 5 deletions
|
@ -54,7 +54,7 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
|||
bucket.liquids[source] = {
|
||||
source = source,
|
||||
flowing = flowing,
|
||||
itemname = itemname,
|
||||
itemname = itemname:sub(1,1) == ":" and itemname:sub(2) or itemname,
|
||||
force_renew = force_renew,
|
||||
}
|
||||
bucket.liquids[flowing] = bucket.liquids[source]
|
||||
|
@ -116,10 +116,6 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
|||
return ItemStack("bucket:bucket_empty")
|
||||
end
|
||||
})
|
||||
if itemname:sub(1,1) == ":" then
|
||||
-- If the itemname starts with a colon, correct that
|
||||
bucket.liquids[source]["itemname"] = itemname:sub(2)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue