Changes for the dark-lib
This commit is contained in:
parent
0d465abb7e
commit
e3816bb574
2 changed files with 5 additions and 11 deletions
|
@ -113,7 +113,7 @@ public class GrabDictionary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerList()
|
static
|
||||||
{
|
{
|
||||||
registerGrabableEntity("chicken", EntityChicken.class);
|
registerGrabableEntity("chicken", EntityChicken.class);
|
||||||
registerGrabableEntity("cow", EntityCow.class);
|
registerGrabableEntity("cow", EntityCow.class);
|
||||||
|
|
|
@ -70,9 +70,9 @@ public abstract class TileEntityAssembly extends TileEntityRunnableMachine imple
|
||||||
this.updateTick = ((int) random.nextInt(10) + 20);
|
this.updateTick = ((int) random.nextInt(10) + 20);
|
||||||
this.updateNetworkConnections();
|
this.updateNetworkConnections();
|
||||||
}
|
}
|
||||||
if (this.wattsReceived >= this.getRequest().getWatts())
|
if (this.wattsReceived >= this.getRequest())
|
||||||
{
|
{
|
||||||
this.wattsReceived -= getRequest().getWatts();
|
this.wattsReceived -= getRequest();
|
||||||
this.powered = true;
|
this.powered = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -134,15 +134,9 @@ public abstract class TileEntityAssembly extends TileEntityRunnableMachine imple
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ElectricityPack getRequest()
|
public double getRequest()
|
||||||
{
|
{
|
||||||
int voltage = 120;
|
return .1D;
|
||||||
double amps = .1D;
|
|
||||||
if (this.getTileNetwork() instanceof NetworkAssembly)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
return new ElectricityPack(amps, voltage);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue