mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
fixed NPE from teleport event
This commit is contained in:
parent
cb8822cd6a
commit
fc9a31cbf4
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ public class PlayerEvents implements Listener {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (leftPlot(f, t)) {
|
if (leftPlot(f, t)) {
|
||||||
Plot plot = getCurrentPlot(event.getTo());
|
Plot plot = getCurrentPlot(event.getFrom());
|
||||||
plotExit(event.getPlayer(), plot);
|
plotExit(event.getPlayer(), plot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue