From ac1ec1d77d40a3eb1f6c6b2e76ad114db46c43eb Mon Sep 17 00:00:00 2001 From: kay27 Date: Sun, 13 Feb 2022 04:19:57 +0400 Subject: [PATCH] #195 Fix missing player storage initialisation --- mods/ENTITIES/mcl_burning/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ENTITIES/mcl_burning/init.lua b/mods/ENTITIES/mcl_burning/init.lua index a47824537..077b1e1a8 100644 --- a/mods/ENTITIES/mcl_burning/init.lua +++ b/mods/ENTITIES/mcl_burning/init.lua @@ -16,6 +16,10 @@ dofile(modpath .. "/api.lua") minetest.register_globalstep(function(dtime) for _, player in pairs(get_connected_players()) do local storage = mcl_burning.storage[player] + if not storage then + mcl_burning.init_player(player) + storage = mcl_burning.storage[player] + end if not mcl_burning.tick(player, dtime, storage) and not mcl_burning.is_affected_by_rain(player) then local nodes = mcl_burning.get_touching_nodes(player, {"group:puts_out_fire", "group:set_on_fire"}, storage) local burn_time = 0