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

View file

@ -99,7 +99,11 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
return return
end end
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
}) })
end end