mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-01-19 16:59:36 +01:00
fixes #109
This commit is contained in:
parent
6862b90569
commit
d7992eb587
@ -160,10 +160,18 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
q.setX(border);
|
q.setX(border);
|
||||||
passed = true;
|
passed = true;
|
||||||
}
|
}
|
||||||
|
else if (t.getBlockX() <= -border) {
|
||||||
|
q.setX(-border);
|
||||||
|
passed = true;
|
||||||
|
}
|
||||||
if (t.getBlockZ() >= border) {
|
if (t.getBlockZ() >= border) {
|
||||||
q.setZ(border);
|
q.setZ(border);
|
||||||
passed = true;
|
passed = true;
|
||||||
}
|
}
|
||||||
|
else if (t.getBlockZ() <= -border) {
|
||||||
|
q.setZ(-border);
|
||||||
|
passed = true;
|
||||||
|
}
|
||||||
if (passed) {
|
if (passed) {
|
||||||
event.setTo(q);
|
event.setTo(q);
|
||||||
PlayerFunctions.sendMessage(player, C.BORDER);
|
PlayerFunctions.sendMessage(player, C.BORDER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user