Controller Texs

This commit is contained in:
Raoul Van den Berge
2016-07-09 18:09:56 +02:00
parent 7591f18298
commit a1f212dc4d
13 changed files with 4 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ import java.util.List;
public class BlockController extends BlockBase {
public static final PropertyEnum TYPE = PropertyEnum.create("type", EnumControllerType.class);
public static final PropertyInteger ENERGY = PropertyInteger.create("energy", 0, 8);
public static final PropertyInteger ENERGY = PropertyInteger.create("energy", 0, 7);
public BlockController() {
super("controller");

View File

@@ -37,7 +37,7 @@ public class BlockDiskDrive extends BlockNode {
@Override
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
return super.getActualState(state, world, pos)
.withProperty(STORED, ((TileDiskDrive) world.getTileEntity(pos)).getStoredForDisplay());
.withProperty(STORED, ((TileDiskDrive) world.getTileEntity(pos)).getStoredForScaledDisplay());
}
@Override

View File

@@ -270,7 +270,7 @@ public class TileDiskDrive extends TileNode implements IStorageProvider, IStorag
return (int) Math.floor((stored / storedMax) * 7f);
}
public int getStoredForDisplay() {
public int getStoredForScaledDisplay() {
return stored;
}

View File

@@ -662,7 +662,7 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
}
public int getEnergyScaledForDisplay() {
return getEnergyScaled(8);
return getEnergyScaled(7);
}
public int getEnergyScaledForComparator() {