mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-09-27 04:12:40 +02:00
Remove comments
This commit is contained in:
parent
fcc7036423
commit
cd6e63a1ec
@ -829,7 +829,6 @@ public class BlockEventListener implements Listener {
|
||||
}
|
||||
for (Block block1 : event.getBlocks()) {
|
||||
Location bloc = BukkitUtil.adapt(block1.getLocation());
|
||||
//if (block1.getPistonMoveReaction() == PistonMoveReaction.BREAK) return;
|
||||
if (bloc.isPlotArea() || bloc
|
||||
.add(relative.getBlockX(), relative.getBlockY(), relative.getBlockZ())
|
||||
.isPlotArea() && block1.getPistonMoveReaction() != PistonMoveReaction.BREAK) {
|
||||
@ -852,7 +851,6 @@ public class BlockEventListener implements Listener {
|
||||
for (Block block1 : event.getBlocks()) {
|
||||
Location bloc = BukkitUtil.adapt(block1.getLocation());
|
||||
Location newLoc = bloc.add(relative.getBlockX(), relative.getBlockY(), relative.getBlockZ());
|
||||
//if (block1.getPistonMoveReaction() == PistonMoveReaction.BREAK) return;
|
||||
if (!area.contains(bloc.getX(), bloc.getZ()) || !area.contains(newLoc) && block1.getPistonMoveReaction() != PistonMoveReaction.BREAK) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user