Skip to content

Commit

Permalink
Backport to 1.21.1: Sync code in onDestroyedByPushReaction to original (
Browse files Browse the repository at this point in the history
#1899)

Co-authored-by: sciwhiz12 <[email protected]>
  • Loading branch information
neoforged-automation[bot] and sciwhiz12 authored Jan 23, 2025
1 parent 852d07d commit 49ef558
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ default boolean onDestroyedByPlayer(BlockState state, Level level, BlockPos pos,
* @param fluid The current fluid state at current position
*/
default void onDestroyedByPushReaction(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState fluid) {
level.setBlock(pos, Blocks.AIR.defaultBlockState(), level.isClientSide ? 11 : 3);
level.setBlock(pos, Blocks.AIR.defaultBlockState(), Block.UPDATE_KNOWN_SHAPE | Block.UPDATE_CLIENTS);
level.gameEvent(GameEvent.BLOCK_DESTROY, pos, GameEvent.Context.of(state));
}

Expand Down

0 comments on commit 49ef558

Please sign in to comment.