From fc9a31cbf475c24ea98f1bb9113d7956ffa803b0 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sat, 18 Oct 2014 13:36:30 +1100 Subject: [PATCH] fixed NPE from teleport event --- .../com/intellectualcrafters/plot/listeners/PlayerEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java index 2b9964596..183db9eeb 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -601,7 +601,7 @@ public class PlayerEvents implements Listener { } else { if (leftPlot(f, t)) { - Plot plot = getCurrentPlot(event.getTo()); + Plot plot = getCurrentPlot(event.getFrom()); plotExit(event.getPlayer(), plot); } }