mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 06:36:44 +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