mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
parent
1e83c2a28f
commit
7d4e84e483
@ -194,7 +194,7 @@ function hb.change_hudbar(player, identifier, new_value, new_max_value)
|
|||||||
max_changed = true
|
max_changed = true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
new_max_value = hudtable.hudstate[name].max
|
new_max_value = (hudtable.hudstate[name] or {max = 0}).max
|
||||||
end
|
end
|
||||||
|
|
||||||
local main_error_text =
|
local main_error_text =
|
||||||
|
@ -46,7 +46,7 @@ do_warp_queue = function()
|
|||||||
local t = minetest.get_us_time()
|
local t = minetest.get_us_time()
|
||||||
for i = table.getn(warps_queue),1,-1 do
|
for i = table.getn(warps_queue),1,-1 do
|
||||||
local e = warps_queue[i]
|
local e = warps_queue[i]
|
||||||
if e.p:getpos().x == e.pos.x and e.p:getpos().y == e.pos.y and e.p:getpos().z == e.pos.z then
|
if e and e.p and e.p:getpos() and e.p:getpos().x == e.pos.x and e.p:getpos().y == e.pos.y and e.p:getpos().z == e.pos.z then
|
||||||
if t > e.t then
|
if t > e.t then
|
||||||
warp(e.p, e.w)
|
warp(e.p, e.w)
|
||||||
table.remove(warps_queue, i)
|
table.remove(warps_queue, i)
|
||||||
|
Loading…
Reference in New Issue
Block a user