From a4aac4205b4081e4285ccd82117f5e7566f4e845 Mon Sep 17 00:00:00 2001 From: Fx Morin <28154542+FxMorin@users.noreply.github.com> Date: Mon, 17 Jun 2024 13:09:43 -0400 Subject: [PATCH] Remove unnecessary local capture (#3858) --- .../fabric/mixin/event/lifecycle/client/WorldChunkMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/WorldChunkMixin.java b/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/WorldChunkMixin.java index 99a83ab0e..14d9bb09d 100644 --- a/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/WorldChunkMixin.java +++ b/fabric-lifecycle-events-v1/src/client/java/net/fabricmc/fabric/mixin/event/lifecycle/client/WorldChunkMixin.java @@ -45,7 +45,7 @@ abstract class WorldChunkMixin { public abstract World getWorld(); @Inject(method = "setBlockEntity", at = @At(value = "INVOKE", target = "Lnet/minecraft/block/entity/BlockEntity;markRemoved()V")) - private void onLoadBlockEntity(BlockEntity blockEntity, CallbackInfo ci, @Local(ordinal = 1) BlockEntity removedBlockEntity) { + private void onLoadBlockEntity(BlockEntity blockEntity, CallbackInfo ci) { if (this.getWorld() instanceof ServerWorld) { ServerBlockEntityEvents.BLOCK_ENTITY_LOAD.invoker().onLoad(blockEntity, (ServerWorld) this.getWorld()); } else if (this.getWorld() instanceof ClientWorld) {