0
0
Fork 0

Don't use up bucket contents in creative mode

This commit is contained in:
Wuzzy 2017-02-05 17:59:11 +01:00
parent 71a52de557
commit 4706fe243a
1 changed files with 5 additions and 1 deletions

View File

@ -99,7 +99,11 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
return
end
end
return {name="bucket:bucket_empty"}
if not minetest.setting_getbool("creative_mode") then
return {name="bucket:bucket_empty"}
else
return {name=itemname}
end
end
})
end