Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
UQuark committed Feb 11, 2024
1 parent aee3d7b commit c0252ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ protected boolean moveBlock(Level world, @Nullable Direction forcedDirection, Qu
for (Direction offset : Iterate.directions) {
BlockPos offsetPos = pos.relative(offset);
BlockState blockState = world.getBlockState(offsetPos);
if (isPistonHead(blockState))
continue;
if (isAnchoringBlockAt(offsetPos))
continue;
if (!movementAllowed(blockState, world, offsetPos)) {
Expand Down

0 comments on commit c0252ee

Please sign in to comment.