summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-01-21 21:05:28 -0700
committerFaceDeer <derksenmobile@gmail.com>2017-01-21 21:05:28 -0700
commit0b0b98ba3374e99a0916b9a71e3d8c52f6b1ed01 (patch)
tree11b0c208332488f717fc79a187b56dc0b23f61c8
parentd2df31bd6b499560dac82d9c15d937b5e4179ae5 (diff)
Remove a copy and paste error, change wording of "creative mode" setting
-rw-r--r--init.lua19
-rw-r--r--settingtypes.txt5
2 files changed, 4 insertions, 20 deletions
diff --git a/init.lua b/init.lua
index bee5b7e..c3c41c9 100644
--- a/init.lua
+++ b/init.lua
@@ -23,24 +23,7 @@ dofile( minetest.get_modpath( "digtron" ) .. "/recipes.lua" )
local particle_effects = minetest.setting_getbool("enable_particles")
-- this causes digtrons to operate without consuming fuel or building materials.
-local digtron_creative = minetest.setting_getbool("digtron_creative_mode")
--- when true, lava counts as protected nodes.
-local lava_impassible = minetest.setting_getbool("digtron_lava_impassible")
-
--- when true, diggers deal damage to creatures when they trigger.
-local damage_creatures = minetest.setting_getbool("digtron_damage_creatures")
-
-digtron.creative_mode = digtron_creative -- default false
-digtron.particle_effects = particle_effects or particle_effects == nil -- default true
-digtron.lava_impassible = lava_impassible or lava_impassible == nil -- default true
-digtron.diggers_damage_creatures = damage_creatures or damage_creatures == nil -- default true
-
--- Enables the spray of particles out the back of a digger head and puffs of smoke from the controller
-local particle_effects = minetest.setting_getbool("enable_particles")
-
--- this causes digtrons to operate without consuming fuel or building materials.
-local digtron_creative = minetest.setting_getbool("digtron_creative_mode")
-
+local digtron_creative = not minetest.setting_getbool("digtron_uses_resources")
-- when true, lava counts as protected nodes.
local lava_impassible = minetest.setting_getbool("digtron_lava_impassible")
diff --git a/settingtypes.txt b/settingtypes.txt
index f19bb67..f7e40d0 100644
--- a/settingtypes.txt
+++ b/settingtypes.txt
@@ -1,6 +1,7 @@
-#This causes digtrons to operate without consuming fuel or building materials.
+#This can cause digtrons to operate without consuming fuel or building materials,
+#though they still check whether they have enough in inventory.
#It's a separate setting from regular creative mode.
-digtron_creative_mode (Digtron requires fuel) bool false
+digtron_uses_resources (Digtron uses resources) bool true
#When true, lava counts as protected blocks.
digtron_lava_impassible (Lava is impassible to Digtrons) bool true
#When true, diggers deal damage to creatures when they trigger.