From 4706fe243af6693ffc49a715053cbb82fe6297e7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 5 Feb 2017 17:59:11 +0100 Subject: [PATCH] Don't use up bucket contents in creative mode --- mods/bucket/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/bucket/init.lua b/mods/bucket/init.lua index b2da689e..d1957b21 100644 --- a/mods/bucket/init.lua +++ b/mods/bucket/init.lua @@ -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