mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fixes #1483
This commit is contained in:
parent
5cb94f3e45
commit
98b7a84119
@ -1230,8 +1230,9 @@ public class PlayerEvents extends PlotListener implements Listener {
|
||||
Plot plot = area.getOwnedPlot(location);
|
||||
if (this.pistonBlocks) {
|
||||
try {
|
||||
BlockFace dir = event.getDirection();
|
||||
for (Block pulled : event.getBlocks()) {
|
||||
location = BukkitUtil.getLocation(pulled.getLocation());
|
||||
location = BukkitUtil.getLocation(pulled.getLocation().add(dir.getModX(), dir.getModY(), dir.getModZ()));
|
||||
if (!area.contains(location.getX(), location.getZ())) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user