mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Improve mcl_burning player performance
This commit is contained in:
parent
10f81dbf0c
commit
bd3c08d367
1 changed files with 4 additions and 2 deletions
|
@ -23,7 +23,9 @@ minetest.register_entity("mcl_burning:fire", {
|
||||||
|
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
mcl_burning.tick(player, dtime)
|
if player:get_meta():get_float("mcl_burning:burn_time") > 0 then
|
||||||
|
mcl_burning.tick(player, dtime)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue