Removed Alpha Migration.

Fixed a crash when AE is rendering as a FMP Part.
Meteorite Loot is now less random.
Added support for CLApi ( might be neat as it develops )
This commit is contained in:
AlgorithmX2
2014-05-15 21:18:30 -05:00
parent 9ba1b133d7
commit 6f96ae6074
16 changed files with 75 additions and 1001 deletions
+7
View File
@@ -40,8 +40,10 @@ import appeng.api.util.AEColor;
import appeng.api.util.DimensionalCoord;
import appeng.client.render.BusRenderHelper;
import appeng.client.render.CableRenderHelper;
import appeng.core.AppEng;
import appeng.facade.FacadeContainer;
import appeng.helpers.AEMultiTile;
import appeng.integration.abstraction.ICLApi;
import appeng.me.GridConnection;
import appeng.util.Platform;
import cpw.mods.fml.relauncher.Side;
@@ -800,12 +802,17 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
public int getLightValue()
{
int light = 0;
for (ForgeDirection d : ForgeDirection.values())
{
IPart p = getPart( d );
if ( p != null )
light = Math.max( p.getLightLevel(), light );
}
if ( light > 0 && AppEng.instance.isIntegrationEnabled( "CLApi" ) )
return ((ICLApi) AppEng.instance.getIntegration( "CLApi" )).colorLight( getColor(), light );
return light;
}