Skip to content

Commit

Permalink
Remove unnecessary local capture (#3858)
Browse files Browse the repository at this point in the history
  • Loading branch information
FxMorin authored and Su5eD committed Jul 4, 2024
1 parent 5581212 commit 9315b2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ abstract class WorldChunkMixin {
public abstract Level getLevel();

@Inject(method = "setBlockEntity", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/entity/BlockEntity;setRemoved()V"))
private void onLoadBlockEntity(BlockEntity blockEntity, CallbackInfo ci, @Local(ordinal = 1) BlockEntity removedBlockEntity) {
private void onLoadBlockEntity(BlockEntity blockEntity, CallbackInfo ci) {
if (this.getLevel() instanceof ServerLevel) {
ServerBlockEntityEvents.BLOCK_ENTITY_LOAD.invoker().onLoad(blockEntity, (ServerLevel) this.getLevel());
} else if (this.getLevel() instanceof ClientLevel) {
Expand Down

0 comments on commit 9315b2b

Please sign in to comment.