use of cc.hyperium.mixins.client.network.IMixinNetworkPlayerInfo in project Hyperium by HyperiumClient.
the class MixinRenderGlobal method removeEntity.
@Inject(method = "onEntityRemoved", at = @At("HEAD"))
private void removeEntity(Entity entityIn, CallbackInfo ci) {
if (entityIn instanceof AbstractClientPlayer) {
MemoryHelper.INSTANCE.queueDelete(((AbstractClientPlayer) entityIn).getLocationCape());
MemoryHelper.INSTANCE.queueDelete(((AbstractClientPlayer) entityIn).getLocationSkin());
NetworkPlayerInfo info = ((IMixinAbstractClientPlayer) entityIn).callGetPlayerInfo();
if (info == null)
return;
((IMixinNetworkPlayerInfo) info).setPlayerTexturesLoaded(false);
((IMixinNetworkPlayerInfo) info).setLocationCape(null);
((IMixinNetworkPlayerInfo) info).setLocationSkin(null);
}
}
Aggregations