Reduce warning level for NoCheatPlus.
This commit is contained in:
parent
6290eb85c6
commit
b1b30aba9b
|
@ -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.");
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue