Fix nodes not breakable in creative
This commit is contained in:
parent
bf2dca21ce
commit
c555d7c60f
2 changed files with 9 additions and 1 deletions
|
@ -18,10 +18,14 @@
|
|||
-- The hand
|
||||
local groupcaps
|
||||
if minetest.setting_getbool("creative_mode") then
|
||||
-- Instant breaking in creative mode
|
||||
groupcaps = {
|
||||
creative_breakable = {times={[1]=0}, uses=0},
|
||||
|
||||
}
|
||||
-- mcl_autogroup provides the creative digging times for all digging groups
|
||||
for k,v in pairs(mcl_autogroup.creativetimes) do
|
||||
groupcaps[k] = { times = v, uses = 0 }
|
||||
end
|
||||
else
|
||||
groupcaps = {
|
||||
handy_dig = {times=mcl_autogroup.digtimes.handy_dig, uses=0},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue