mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-25 17:18:09 -05:00
Remove unnecessary local capture (#3858)
This commit is contained in:
parent
cb5ced13ef
commit
a4aac4205b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue