Energy Cell fill property had incorrect range (Fixes #10)

This commit is contained in:
Sebastian Hartte 2016-09-10 17:43:49 +02:00
parent 73b9e83b9f
commit 99b73957c1

View file

@ -40,12 +40,12 @@ import appeng.util.Platform;
public class BlockEnergyCell extends AEBaseTileBlock public class BlockEnergyCell extends AEBaseTileBlock
{ {
public static final PropertyInteger ENERGY_STORAGE = PropertyInteger.create( "fullness", 0, 8 ); public static final PropertyInteger ENERGY_STORAGE = PropertyInteger.create( "fullness", 0, 7 );
@Override @Override
public int getMetaFromState( final IBlockState state ) public int getMetaFromState( final IBlockState state )
{ {
return (int) state.getValue( ENERGY_STORAGE ); return state.getValue( ENERGY_STORAGE );
} }
@Override @Override