Make creative dig speed consistently 0

This commit is contained in:
Elias Åström 2023-08-13 11:29:41 +02:00 committed by cora
parent 50dda4358e
commit d51b4e2834
2 changed files with 1 additions and 5 deletions

View File

@ -47,7 +47,6 @@ local node_def = {
-- This is for _mcl_autogroup to know about the survival hand tool capabilites -- This is for _mcl_autogroup to know about the survival hand tool capabilites
mcl_meshhand.survival_hand_tool_caps = node_def.tool_capabilities 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 local creative_hand_range = tonumber(minetest.settings:get("mcl_hand_range_creative")) or 10
if mcl_skins_enabled then if mcl_skins_enabled then
-- Generate a node for every skin -- Generate a node for every skin
@ -87,7 +86,7 @@ else
node_def = table.copy(node_def) node_def = table.copy(node_def)
node_def.range = creative_hand_range node_def.range = creative_hand_range
node_def.groups.dig_speed_class = 7 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) minetest.register_node("mcl_meshhand:hand_crea", node_def)
end end

View File

@ -80,9 +80,6 @@ mcl_hand_range (Hand range) float 4.5 1 128
# Default:10 # Default:10
mcl_hand_range_creative (Creative mode hand range) float 10 1 128 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 # If enabled the hunger mechanic will be active
mcl_enable_hunger (Hunger mechanic) bool true mcl_enable_hunger (Hunger mechanic) bool true