player: Fix "static" Group Definition

master
benrob0329 2019-08-30 01:40:31 -04:00
parent a4563697c9
commit 15b0e084f7
1 changed files with 6 additions and 8 deletions

View File

@ -1,9 +1,10 @@
local STATIC_BREAK_TIME
local STATIC_GROUPCAP
if minetest.settings:get_bool("creative_mode", false) then
STATIC_BREAK_TIME = 0.20
else
STATIC_BREAK_TIME = 0.00
STATIC_GROUPCAP = {
times = {[1] = 1.00},
uses = 0,
}
end
@ -15,10 +16,7 @@ minetest.register_item(":", {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
static = {
times = {[1] = STATIC_BREAK_TIME},
uses = 0,
},
static = STATIC_GROUPCAP,
oddly_breakable_by_hand = {
times = {[1] = 1.00},