mirror of
https://github.com/minetest-mods/i3.git
synced 2024-11-16 15:50:22 +01:00
Fix potential crash with skinssb
This commit is contained in:
parent
55c6d09389
commit
8b6f50b387
|
@ -5,7 +5,7 @@ local init_detached = i3.files.detached()
|
||||||
local init_hud = i3.files.hud()
|
local init_hud = i3.files.hud()
|
||||||
local set_fs = i3.set_fs
|
local set_fs = i3.set_fs
|
||||||
|
|
||||||
IMPORT("slz", "min", "copy", "ItemStack")
|
IMPORT("slz", "min", "insert", "copy", "ItemStack")
|
||||||
IMPORT("spawn_item", "reset_data", "get_detached_inv")
|
IMPORT("spawn_item", "reset_data", "get_detached_inv")
|
||||||
|
|
||||||
core.register_on_player_hpchange(function(player, hpchange)
|
core.register_on_player_hpchange(function(player, hpchange)
|
||||||
|
@ -175,7 +175,7 @@ local function save_data(player_name)
|
||||||
storage:set_string("data", slz(_data))
|
storage:set_string("data", slz(_data))
|
||||||
end
|
end
|
||||||
|
|
||||||
core.register_on_joinplayer(function(player)
|
insert(core.registered_on_joinplayers, 1, function(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local info = core.get_player_information and core.get_player_information(name)
|
local info = core.get_player_information and core.get_player_information(name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user