Changes for the dark-lib

This commit is contained in:
DarkGuardsman 2013-07-01 19:41:47 -04:00
parent 0d465abb7e
commit e3816bb574
2 changed files with 5 additions and 11 deletions

View file

@ -113,7 +113,7 @@ public class GrabDictionary
}
}
public static void registerList()
static
{
registerGrabableEntity("chicken", EntityChicken.class);
registerGrabableEntity("cow", EntityCow.class);

View file

@ -70,9 +70,9 @@ public abstract class TileEntityAssembly extends TileEntityRunnableMachine imple
this.updateTick = ((int) random.nextInt(10) + 20);
this.updateNetworkConnections();
}
if (this.wattsReceived >= this.getRequest().getWatts())
if (this.wattsReceived >= this.getRequest())
{
this.wattsReceived -= getRequest().getWatts();
this.wattsReceived -= getRequest();
this.powered = true;
}
else
@ -134,15 +134,9 @@ public abstract class TileEntityAssembly extends TileEntityRunnableMachine imple
}
@Override
public ElectricityPack getRequest()
public double getRequest()
{
int voltage = 120;
double amps = .1D;
if (this.getTileNetwork() instanceof NetworkAssembly)
{
}
return new ElectricityPack(amps, voltage);
return .1D;
}
@Override