mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-11 22:45:38 -04:00
Fix crash in production Closes #1155
This commit is contained in:
parent
96d1e9eae1
commit
c3939b0682
1 changed files with 2 additions and 2 deletions
|
@ -40,13 +40,13 @@ abstract class ClientWorldEntityLoaderMixin {
|
|||
private ClientWorld field_27735;
|
||||
|
||||
// Call our load event after vanilla has loaded the entity
|
||||
@Inject(method = "onLoadEntity", at = @At("TAIL"))
|
||||
@Inject(method = "onLoadEntity(Lnet/minecraft/entity/Entity;)V", at = @At("TAIL"))
|
||||
private void invokeLoadEntity(Entity entity, CallbackInfo ci) {
|
||||
ClientEntityEvents.ENTITY_LOAD.invoker().onLoad(entity, this.field_27735);
|
||||
}
|
||||
|
||||
// Call our unload event before vanilla does.
|
||||
@Inject(method = "onUnloadEntity", at = @At("HEAD"))
|
||||
@Inject(method = "onUnloadEntity(Lnet/minecraft/entity/Entity;)V", at = @At("HEAD"))
|
||||
private void invokeUnloadEntity(Entity entity, CallbackInfo ci) {
|
||||
ClientEntityEvents.ENTITY_UNLOAD.invoker().onUnload(entity, this.field_27735);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue