fix crashing bug introduced by 135e1b5

master
Pilcrow182 2018-11-10 17:43:03 -06:00
parent b9d9a10758
commit f35a63d525
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ end)
minetest.register_on_respawnplayer(function(player)
local name = player:get_player_name()
if flying_saucer.storage[name].physics then
if flying_saucer.storage[name] and flying_saucer.storage[name].physics then
deactivate_flying_saucer(player, name)
end
end)