Fix crash fix not fixing crash
This commit is contained in:
parent
1ef6ddadfd
commit
36a6f4117a
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ minetest.registered_entities["shooter_hook:hook"].on_step = function(self, dtime
|
||||||
-- User left the game. Life is no longer worth living for this poor hook
|
-- User left the game. Life is no longer worth living for this poor hook
|
||||||
if not self.user then
|
if not self.user then
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Remove entity if player has flag
|
-- Remove entity if player has flag
|
||||||
|
|
Loading…
Reference in a new issue