Fix #701 Improve BeekeepingLogic and network performance.

Improve rendering performance of saplings and butterflies too
This commit is contained in:
mezz committed 2015-06-06 23:15:25 -07:00
1 parent d61096e1a9
commit 1249ccf983
34 files changed
+404 -217

No files matched your search

@@ -22,9 +22,9 @@ import forestry.apiculture.render.BeeItemRenderer;
import forestry.apiculture.render.EntityBeeFX;
import forestry.apiculture.render.ParticleRenderer;
import forestry.apiculture.render.RenderBee;
import forestry.core.config.Config;
import forestry.core.config.ForestryItem;
import forestry.core.interfaces.IBlockRenderer;
import forestry.core.proxy.ClientProxyRender;
import forestry.core.render.RenderAnalyzer;
import forestry.core.render.TextureManager;
import forestry.plugins.PluginApiculture;
@@ -44,7 +44,7 @@ public class ClientProxyApiculture extends ProxyApiculture {
@Override
public void addBeeHiveFX(String icon, World world, double xCoord, double yCoord, double zCoord, int color, int areaX, int areaY, int areaZ) {
if (!Config.enableParticleFX) {
if (!ClientProxyRender.shouldSpawnParticle(world)) {
return;
}
@@ -66,7 +66,7 @@ public class ClientProxyApiculture extends ProxyApiculture {
@Override
public void addBeeSwarmFX(String icon, World world, double xCoord, double yCoord, double zCoord, int color) {
if (!Config.enableParticleFX) {
if (!ClientProxyRender.shouldSpawnParticle(world)) {
return;
}