Fix nodes not breakable in creative

This commit is contained in:
Wuzzy 2017-02-28 00:14:31 +01:00
parent bf2dca21ce
commit c555d7c60f
2 changed files with 9 additions and 1 deletions

View file

@ -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},