This commit is contained in:
kirillsaint 2023-10-07 23:13:11 +06:00
parent ba6418e435
commit f9ef09f72d
2 changed files with 9 additions and 6 deletions

View File

@ -79,13 +79,16 @@ public class RendererLivingEntityMixin<T extends EntityLivingBase> {
if (entity instanceof IMob && entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Hostile Entity Render Distance").getValInt()) {
ci.cancel();
return;
} else if ((entity instanceof EntityAnimal || entity instanceof EntityAmbientCreature || entity instanceof EntityWaterMob) && entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Passive Entity Render Distance").getValInt()) {
}
if ((entity instanceof EntityAnimal || entity instanceof EntityAmbientCreature || entity instanceof EntityWaterMob) && entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Passive Entity Render Distance").getValInt()) {
ci.cancel();
return;
} else if (entity instanceof EntityPlayer && entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Player Render Distance").getValInt()) {
}
if (entity instanceof EntityPlayer && entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Player Render Distance").getValInt()) {
ci.cancel();
return;
} else if (entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Misc. Entity Render Distance").getValInt()) {
}
if (entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Misc. Entity Render Distance").getValInt()) {
ci.cancel();
return;
}

View File

@ -163,8 +163,6 @@ public class EntityCulling {
return;
}
// System.out.println("Working!!");
//#if MC==10809
EntityLivingBase entity = (EntityLivingBase)event.getEntity();
//#else
@ -198,8 +196,10 @@ public class EntityCulling {
//$$ RenderLivingBase<EntityLivingBase> renderer = event.getRenderer();
//#endif
if(entity instanceof EntityPlayer) {
renderer.renderName(entity, x, y, z);
}
}
}