1818@ Mixin (targets = "net/minecraft/world/level/chunk/LevelChunk$BoundTickingBlockEntity" )
1919public abstract class DirectBlockEntityTickInvokerMixin implements WorldBorderListenerOnce {
2020
21- @ Shadow ( aliases = { "field_27223" , "this$0" })
21+ @ Shadow
2222 @ Final
23- LevelChunk field_27223 ;
23+ LevelChunk this$0 ;
2424
2525 @ Shadow
2626 public abstract BlockPos getPos ();
@@ -36,9 +36,9 @@ public abstract class DirectBlockEntityTickInvokerMixin implements WorldBorderLi
3636 )
3737 private boolean cachedCanTickBlockEntity (LevelChunk instance , BlockPos pos ) {
3838 if (this .isInsideWorldBorder ()) {
39- Level world = this .field_27223 .getLevel ();
39+ Level world = this .this$0 .getLevel ();
4040 if (world instanceof ServerLevel serverWorld ) {
41- return this .field_27223 .getFullStatus ().isOrAfter (FullChunkStatus .BLOCK_TICKING ) && serverWorld .areEntitiesLoaded (ChunkPos .pack (pos ));
41+ return this .this$0 .getFullStatus ().isOrAfter (FullChunkStatus .BLOCK_TICKING ) && serverWorld .areEntitiesLoaded (ChunkPos .pack (pos ));
4242 }
4343 return true ;
4444 } else {
@@ -55,12 +55,12 @@ private boolean isInsideWorldBorder() {
5555 if ((worldBorderState & 3 ) == 3 ) {
5656 return (worldBorderState & 4 ) != 0 ;
5757 }
58- return this .field_27223 .getLevel ().getWorldBorder ().isWithinBounds (this .getPos ());
58+ return this .this$0 .getLevel ().getWorldBorder ().isWithinBounds (this .getPos ());
5959 }
6060
6161 private void startWorldBorderCaching () {
6262 this .worldBorderState = (byte ) 1 ;
63- WorldBorder worldBorder = this .field_27223 .getLevel ().getWorldBorder ();
63+ WorldBorder worldBorder = this .this$0 .getLevel ().getWorldBorder ();
6464 worldBorder .addListener (this );
6565 boolean isStationary = worldBorder .getStatus () == BorderStatus .STATIONARY ;
6666 if (worldBorder .isWithinBounds (this .getPos ())) {
0 commit comments