Apply suggestions from code review

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
Petras Jokubauskas 2025-06-10 12:31:18 +02:00 committed by GitHub
parent e50982f679
commit 8fb91ea8be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ end
function bucket.register_liquid(source, flowing, itemname, inventory_image, name, function bucket.register_liquid(source, flowing, itemname, inventory_image, name,
groups, force_renew) groups, force_renew)
local itemname_raw = itemname local itemname_raw = itemname
itemname = itemname:match(":(.+)") or itemname itemname = itemname and itemname:match(":(.+)") or itemname
bucket.liquids[source] = { bucket.liquids[source] = {
source = source, source = source,
flowing = flowing, flowing = flowing,