Skip to content

Commit

Permalink
Fix certain block state flag unpicks not applying
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnupbups committed Feb 7, 2025
1 parent 2faccd1 commit 4c82195
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mappings/net/minecraft/block/Block.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ CLASS net/minecraft/class_2248 net/minecraft/block/Block
COMMENT Skips {@link BlockEntity#onStateReplaced}.
COMMENT Used when placing structures.
FIELD field_55740 FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS I
COMMENT Used for 'strict' block placement by commands and structures.
COMMENT @see #SKIP_ON_BLOCK_ADDED
COMMENT @see #SKIP_ON_STATE_REPLACED
COMMENT @see #SKIP_DROPS
Expand Down
4 changes: 2 additions & 2 deletions unpick-definitions/set_block_state_flags.unpick
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
v2

flag set_block_state_flags net/minecraft/block/Block FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS
flag set_block_state_flags net/minecraft/block/Block SKIP_REDRAW_AND_ON_STATE_REPLACED
flag set_block_state_flags net/minecraft/block/Block NOTIFY_ALL_AND_REDRAW
flag set_block_state_flags net/minecraft/block/Block NOTIFY_ALL
flag set_block_state_flags net/minecraft/block/Block NOTIFY_NEIGHBORS
Expand All @@ -12,8 +14,6 @@ flag set_block_state_flags net/minecraft/block/Block MOVED
flag set_block_state_flags net/minecraft/block/Block SKIP_REDSTONE_WIRE_STATE_REPLACEMENT
flag set_block_state_flags net/minecraft/block/Block SKIP_ON_STATE_REPLACED
flag set_block_state_flags net/minecraft/block/Block SKIP_ON_BLOCK_ADDED
flag set_block_state_flags net/minecraft/block/Block SKIP_REDRAW_AND_ON_STATE_REPLACED
flag set_block_state_flags net/minecraft/block/Block FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS

target_method net/minecraft/world/ModifiableWorld setBlockState (Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Z
param 2 set_block_state_flags
Expand Down

0 comments on commit 4c82195

Please sign in to comment.