]> git.lizzy.rs Git - skycraft.git/commitdiff
Fixed Crash
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 8 Jun 2020 13:44:37 +0000 (15:44 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 8 Jun 2020 13:44:37 +0000 (15:44 +0200)
src/main/plots.lua

index 91628791d76b530fc3ba2f9b2b1cc6813a020472..2d6c67e05d76d5fa84f5ec3c8dd28ca1a03905ea 100644 (file)
@@ -130,7 +130,7 @@ local plot_commands = {
                if pos.y < -100 then return false, "You can only use this command in the Overworld" end
                local plot = skycraft.get_plot_at_pos(pos)
                if plot and plot.owner == name then return false, "You are already on your home plot" end
-               skycraft.spawn_player(name)
+               skycraft.spawn_player(player)
                return true, "Warped to your home plot"
        end
 }