mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
[mcl_burning] fix warnings
This commit is contained in:
parent
dd3b5a98ae
commit
ad16fe7072
@ -1,5 +1,3 @@
|
||||
local S = minetest.get_translator("mcl_burning")
|
||||
|
||||
function mcl_burning.get_storage(obj)
|
||||
return obj:is_player() and mcl_burning.storage[obj] or obj:get_luaentity()
|
||||
end
|
||||
|
@ -1,5 +1,4 @@
|
||||
local S = minetest.get_translator("mcl_burning")
|
||||
local modpath = minetest.get_modpath("mcl_burning")
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
mcl_burning = {
|
||||
storage = {},
|
||||
@ -56,7 +55,6 @@ minetest.register_on_leaveplayer(function(player)
|
||||
local storage = mcl_burning.storage[player]
|
||||
storage.fire_hud_id = nil
|
||||
player:get_meta():set_string("mcl_burning:data", minetest.serialize(storage))
|
||||
|
||||
mcl_burning.storage[player] = nil
|
||||
end)
|
||||
|
||||
@ -70,10 +68,8 @@ minetest.register_entity("mcl_burning:fire", {
|
||||
glow = -1,
|
||||
backface_culling = false,
|
||||
},
|
||||
|
||||
animation_frame = 0,
|
||||
animation_timer = 0,
|
||||
|
||||
on_step = function(self, dtime)
|
||||
local parent, storage = self:sanity_check()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user