Fixed some issues with the AESU, Added gui text to it
This commit is contained in:
parent
81a5f3fc76
commit
944ac7492e
3 changed files with 47 additions and 6 deletions
|
@ -1,6 +1,5 @@
|
|||
package techreborn.tiles;
|
||||
|
||||
import codechicken.microblock.FaceEdgeGrid;
|
||||
import ic2.api.tile.IWrenchable;
|
||||
import ic2.core.block.wiring.TileEntityElectricBlock;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
@ -16,7 +15,7 @@ public class TileAesu extends TileEntityElectricBlock implements IWrenchable {
|
|||
public static final int MAX_OUTPUT = 8192;
|
||||
public static final int MAX_STORAGE = 1000000000; //One billion!
|
||||
public Inventory inventory = new Inventory(2, "TileAesu", 64);
|
||||
public int OUTPUT = 64; //The current output
|
||||
private int OUTPUT = 64; //The current output
|
||||
|
||||
public TileAesu()
|
||||
{
|
||||
|
@ -39,7 +38,7 @@ public class TileAesu extends TileEntityElectricBlock implements IWrenchable {
|
|||
@Override
|
||||
public short getFacing()
|
||||
{
|
||||
return (short) getBlockMetadata();
|
||||
return super.getFacing();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -98,7 +97,7 @@ public class TileAesu extends TileEntityElectricBlock implements IWrenchable {
|
|||
if(OUTPUT > MAX_OUTPUT){
|
||||
OUTPUT = MAX_OUTPUT;
|
||||
}
|
||||
if(OUTPUT < 0){
|
||||
if(OUTPUT <= -1){
|
||||
OUTPUT = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue