Update base.lua

master
AiTechEye 2018-07-15 15:11:00 +02:00 committed by GitHub
parent a9ba3b90fd
commit 75398a1ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
minetest.after(0, function()
aliveai.respawn_player_point=aliveai.strpos(minetest.setting_get("static_spawnpoint"),1)
if not aliveai.respawn_player_point then
if not aliveai.respawn_player_point or aliveai.respawn_player_point=="" then
aliveai.respawn_player_point=nil
minetest.register_on_leaveplayer(function(player)
if not aliveai.replayerpos then return end
aliveai.replayerpos[player:get_player_name()]=nil