瀏覽代碼

Make the creative mod hand dig 'dig_immediate' nodes fast

Engine change now makes this possible.
Paramat 4 年之前
父節點
當前提交
2063fcd075
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      mods/creative/init.lua

+ 3 - 0
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},
 		}