Reduce warning level for NoCheatPlus.

This commit is contained in:
asofold 2016-06-01 21:30:50 +02:00
parent 6290eb85c6
commit b1b30aba9b
2 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public class TestCoordMap {
*/
public void matchAll(CoordMap<Integer> map, int[][] coords) {
for (int i = 0; i < coords.length ; i++){
Integer value = map.get(coords[i][0], coords[i][1], coords[i][2]).intValue();
Integer value = map.get(coords[i][0], coords[i][1], coords[i][2]);
if (value == null) fail("Value is null instead of " + i);
if (value.intValue() != i) fail("Wrong value: " + value + " vs. " + i);
if (!map.contains(coords[i][0], coords[i][1], coords[i][2])) fail("Contains returns false.");

View File

@ -62,6 +62,7 @@ public class BlockCacheCBDev extends BlockCache implements IBlockAccess {
}
final BlockPosition pos = new BlockPosition(x, y, z);
// TODO: Deprecation warning below (reason / substitute?).
@SuppressWarnings("deprecation")
final AxisAlignedBB bb = block.a(getType(pos), this, pos);
if (bb == null) {
return new double[] {0.0, 0.0, 0.0, 1.0, 1.0, 1.0}; // Special case.