forked from VoxeLibre/VoxeLibre
Decrease player burn time in Creative mode
This commit is contained in:
parent
689e6edac2
commit
2e898b3113
|
@ -124,6 +124,10 @@ function mcl_burning.set_on_fire(obj, burn_time, damage, reason)
|
||||||
local max_fire_prot_lvl = 0
|
local max_fire_prot_lvl = 0
|
||||||
|
|
||||||
if obj:is_player() then
|
if obj:is_player() then
|
||||||
|
if minetest.is_creative_enabled(obj:get_player_name()) then
|
||||||
|
burn_time = burn_time / 100
|
||||||
|
end
|
||||||
|
|
||||||
local inv = obj:get_inventory()
|
local inv = obj:get_inventory()
|
||||||
|
|
||||||
for i = 2, 5 do
|
for i = 2, 5 do
|
||||||
|
|
Loading…
Reference in New Issue