player: Fix "static" Group Definition
parent
a4563697c9
commit
15b0e084f7
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue