mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:21:32 +01:00
better
This commit is contained in:
parent
ba6418e435
commit
f9ef09f72d
@ -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()) {
|
if (entity instanceof IMob && entityDistance > Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Hostile Entity Render Distance").getValInt()) {
|
||||||
ci.cancel();
|
ci.cancel();
|
||||||
return;
|
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();
|
ci.cancel();
|
||||||
return;
|
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();
|
ci.cancel();
|
||||||
return;
|
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();
|
ci.cancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -162,8 +162,6 @@ public class EntityCulling {
|
|||||||
if (Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Occlusion Culling").getValString().equals("Off") || !shouldPerformCulling) {
|
if (Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Occlusion Culling").getValString().equals("Off") || !shouldPerformCulling) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// System.out.println("Working!!");
|
|
||||||
|
|
||||||
//#if MC==10809
|
//#if MC==10809
|
||||||
EntityLivingBase entity = (EntityLivingBase)event.getEntity();
|
EntityLivingBase entity = (EntityLivingBase)event.getEntity();
|
||||||
@ -198,7 +196,9 @@ public class EntityCulling {
|
|||||||
//$$ RenderLivingBase<EntityLivingBase> renderer = event.getRenderer();
|
//$$ RenderLivingBase<EntityLivingBase> renderer = event.getRenderer();
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
renderer.renderName(entity, x, y, z);
|
if(entity instanceof EntityPlayer) {
|
||||||
|
renderer.renderName(entity, x, y, z);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user