mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-04-03 21:02:31 +02:00
Improve mcl_burning player performance
This commit is contained in:
@ -23,8 +23,10 @@ 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
|
||||||
|
if player:get_meta():get_float("mcl_burning:burn_time") > 0 then
|
||||||
mcl_burning.tick(player, dtime)
|
mcl_burning.tick(player, dtime)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_respawnplayer(function(player)
|
minetest.register_on_respawnplayer(function(player)
|
||||||
|
Reference in New Issue
Block a user