mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-24 22:26:45 +01:00
fixed NPE from teleport event
This commit is contained in:
parent
cb8822cd6a
commit
fc9a31cbf4
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user