Creative Energy Cube now won't be drained of or receive power.

This commit is contained in:
Aidan Brady committed 2014-07-31 19:19:03 -04:00
1 parent ed4aa7671c
commit da35b509fd
4 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ public final class Tier
ADVANCED("Advanced", EnumColor.DARK_RED, 8000000, 3200),
ELITE("Elite", EnumColor.DARK_BLUE, 32000000, 12800),
ULTIMATE("Ultimate", EnumColor.PURPLE, 128000000, 51200),
CREATIVE("Creative", EnumColor.BLACK, Integer.MAX_VALUE, Integer.MAX_VALUE/2D);
CREATIVE("Creative", EnumColor.BLACK, Integer.MAX_VALUE, Integer.MAX_VALUE);
public double MAX_ELECTRICITY;
public double OUTPUT;
@@ -247,8 +247,9 @@ public class TileEntityEnergyCube extends TileEntityElectricBlock implements IPe
{
if(tier == EnergyCubeTier.CREATIVE)
{
energy = Integer.MAX_VALUE / 2D;
return;
}
super.setEnergy(energy);
int newRedstoneLevel = getRedstoneLevel();
@@ -1156,6 +1156,11 @@ public final class MekanismUtils
*/
public static String getEnergyDisplay(double energy)
{
if(energy == Integer.MAX_VALUE)
{
return localize("gui.infinite");
}
switch(Mekanism.activeType)
{
case J: