mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-30 06:23:49 +01:00
Fix MC 1.7 compatibility to pistons.
This commit is contained in:
parent
e9ecb6d2a8
commit
5c9ba2e22e
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user