Fixes issue #212 "Tesselating block in world"
This commit is contained in:
@@ -37,7 +37,7 @@ public class BlockDiskDrive extends BlockNode {
|
|||||||
@Override
|
@Override
|
||||||
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||||
return super.getActualState(state, world, pos)
|
return super.getActualState(state, world, pos)
|
||||||
.withProperty(STORED, ((TileDiskDrive) world.getTileEntity(pos)).getStoredForScaledDisplay());
|
.withProperty(STORED, Math.max(0, ((TileDiskDrive) world.getTileEntity(pos)).getStoredForDisplay()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ public class TileDiskDrive extends TileNode implements IStorageProvider, IStorag
|
|||||||
return (int) Math.floor((stored / storedMax) * 7f);
|
return (int) Math.floor((stored / storedMax) * 7f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStoredForScaledDisplay() {
|
public int getStoredForDisplay() {
|
||||||
return stored;
|
return stored;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user