mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fixes #1483
This commit is contained in:
parent
5cb94f3e45
commit
98b7a84119
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue