Fix MC 1.7 compatibility to pistons.

This commit is contained in:
wizjany 2016-06-11 11:39:58 -04:00
parent e9ecb6d2a8
commit 5c9ba2e22e

View File

@ -284,7 +284,7 @@ public void onBlockPistonRetract(BlockPistonRetractEvent event) {
if (originalSize != blocks.size()) {
event.setCancelled(true);
}
for (Block b : event.getBlocks()) {
for (Block b : blocks) {
Location loc = b.getRelative(direction).getLocation();
Events.fireToCancel(event, new PlaceBlockEvent(event, cause, loc, b.getType()));
}