aboutsummaryrefslogtreecommitdiff
path: root/src/main/plots.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-06-08 15:44:37 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-06-08 15:44:37 +0200
commitc428e0a93a0c27851c733b0600e46dc923444ccb (patch)
tree431780d323cc3d55e46e84313897ef3cdac45220 /src/main/plots.lua
parentd7d4ae77a24be9dd6204c9ed92774afb47840cf7 (diff)
downloadskycraft-c428e0a93a0c27851c733b0600e46dc923444ccb.tar.xz
Fixed Crash
Diffstat (limited to 'src/main/plots.lua')
-rw-r--r--src/main/plots.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/plots.lua b/src/main/plots.lua
index 9162879..2d6c67e 100644
--- a/src/main/plots.lua
+++ b/src/main/plots.lua
@@ -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
}