projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2254bd
)
Make the creative mod hand dig 'dig_immediate' nodes fast
author
Paramat
<paramat@users.noreply.github.com>
Sat, 3 Aug 2019 19:51:58 +0000
(20:51 +0100)
committer
GitHub
<noreply@github.com>
Sat, 3 Aug 2019 19:51:58 +0000
(20:51 +0100)
Engine change now makes this possible.
mods/creative/init.lua
patch
|
blob
|
history
diff --git
a/mods/creative/init.lua
b/mods/creative/init.lua
index 0f8d4dba50e669457b9241862c79361e9b01e355..d1878f6a62e14c179a814c737cddd95d4037122f 100644
(file)
--- a/
mods/creative/init.lua
+++ b/
mods/creative/init.lua
@@
-54,6
+54,9
@@
if creative_mode_cache then
snappy = caps,
choppy = caps,
oddly_breakable_by_hand = caps,
+ -- dig_immediate group doesn't use value 1. Value 3 is instant dig
+ dig_immediate =
+ {times = {[2] = digtime, [3] = 0}, uses = 0, maxlevel = 256},
},
damage_groups = {fleshy = 10},
}