From d51b4e28343e1e82244710a46f90195ea27e7f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20=C3=85str=C3=B6m?= Date: Sun, 13 Aug 2023 11:29:41 +0200 Subject: [PATCH] Make creative dig speed consistently 0 --- mods/PLAYER/mcl_meshhand/init.lua | 3 +-- settingtypes.txt | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mods/PLAYER/mcl_meshhand/init.lua b/mods/PLAYER/mcl_meshhand/init.lua index ebe179100..6e654a732 100644 --- a/mods/PLAYER/mcl_meshhand/init.lua +++ b/mods/PLAYER/mcl_meshhand/init.lua @@ -47,7 +47,6 @@ local node_def = { -- This is for _mcl_autogroup to know about the survival hand tool capabilites mcl_meshhand.survival_hand_tool_caps = node_def.tool_capabilities -local creative_dig_speed = tonumber(minetest.settings:get("mcl_creative_dig_speed")) or 0.2 local creative_hand_range = tonumber(minetest.settings:get("mcl_hand_range_creative")) or 10 if mcl_skins_enabled then -- Generate a node for every skin @@ -87,7 +86,7 @@ else node_def = table.copy(node_def) node_def.range = creative_hand_range node_def.groups.dig_speed_class = 7 - node_def.tool_capabilities.groupcaps.creative_breakable = { times = { creative_dig_speed }, uses = 0 } + node_def.tool_capabilities.groupcaps.creative_breakable = { times = { 0 }, uses = 0 } minetest.register_node("mcl_meshhand:hand_crea", node_def) end diff --git a/settingtypes.txt b/settingtypes.txt index b14743645..d28cff8a8 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -80,9 +80,6 @@ mcl_hand_range (Hand range) float 4.5 1 128 # Default:10 mcl_hand_range_creative (Creative mode hand range) float 10 1 128 -# Creative mode dig speed in seconds -mcl_creative_dig_speed (Creative mode dig speed) float 0.2 - # If enabled the hunger mechanic will be active mcl_enable_hunger (Hunger mechanic) bool true