Fix block bug
This commit is contained in:
parent
49ac50043e
commit
20864481dc
@ -85,6 +85,7 @@ public class WorldListener implements Listener {
|
||||
|
||||
if (isMovable) {
|
||||
if (!isBlocksAllowedToInteract(copyWithAdd(blocks, toBreak), piston.getFacing())) continue;
|
||||
Collections.reverse(blocks);
|
||||
for (Block block1 : toBreak) {
|
||||
block1.breakNaturally();
|
||||
}
|
||||
@ -278,6 +279,7 @@ public class WorldListener implements Listener {
|
||||
List<Block> toBreak = checker.getBrokenBlocksObjects();
|
||||
|
||||
if (isMovable) {
|
||||
Collections.reverse(blocks);
|
||||
if (!isBlocksAllowedToInteract(copyWithAdd(blocks, toBreak), piston.getFacing()))
|
||||
continue;
|
||||
for (Block block1 : toBreak) {
|
||||
|
Reference in New Issue
Block a user