Fix crash fix not fixing crash

This commit is contained in:
LoneWolfHT 2021-03-16 16:41:34 -07:00 committed by GitHub
parent 1ef6ddadfd
commit 36a6f4117a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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