mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-04-03 18:16:23 +02: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 {
|
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…
x
Reference in New Issue
Block a user