hopefully fixed ghost headbars when players disconnect
This commit is contained in:
parent
836ac2bd88
commit
d6b0331e44
@ -48,7 +48,7 @@ minetest.register_entity(
|
||||
on_step = function(self, dtime)
|
||||
local ent = self.wielder
|
||||
|
||||
if ent == nil then
|
||||
if ent == nil or (minetest.get_player_by_name(ent:get_player_name(0)) == nil) then
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user