Skip to content

Commit

Permalink
Fixed crash when showing drill head particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Mendes committed Jan 3, 2024
1 parent 4e9d36d commit ae0fae4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public void animateTick(BlockState state, Level level, BlockPos pos, RandomSourc
state.getValue(DRILLING) &&
CaterpillarConfig.useParticles
) {
Direction direction = level.getBlockEntity(pos).getBlockState().getValue(DrillHeadBlock.FACING);
Direction direction = state.getValue(DrillHeadBlock.FACING);
Direction.Axis direction$axis = direction.getAxis();

double x = direction$axis == Direction.Axis.X ? pos.getX() + 0.44D : pos.getX();
Expand Down

0 comments on commit ae0fae4

Please sign in to comment.