Add deprecated information.

master
mckuhei 2 years ago
parent fa743b983d
commit 5ae837f1f8

@ -5,11 +5,13 @@ import sun.misc.Unsafe;
public class Constants { public class Constants {
public static boolean DISABLE_MODULO = false, public static boolean DISABLE_MODULO = false,
USE_64BIT_PERLIN_GENERATOR = false,
ENABLE_FRINGE_LAND = false, ENABLE_FRINGE_LAND = false,
FLOAT_PERLIN_GENERATOR = false, FLOAT_PERLIN_GENERATOR = false,
COMPILE_CHUNK_ASYNC = false; COMPILE_CHUNK_ASYNC = false;
@Deprecated(/* forRemoval = true */)
public static boolean USE_64BIT_PERLIN_GENERATOR = false;
static { static {
Unsafe unsafe; Unsafe unsafe;
try { try {
@ -28,5 +30,8 @@ public class Constants {
} catch(Throwable t) { } catch(Throwable t) {
throw new RuntimeException(t); throw new RuntimeException(t);
} }
if(System.getProperty(cls.getName() + ".USE_64BIT_PERLIN_GENERATOR") != null) {
System.err.println("USE_64BIT_PERLIN_GENERATOR is deprecated and will remove in future, Please consider use -Dnet.minecraft.src.NoiseGeneratorOctaves.noiseType=" + (USE_64BIT_PERLIN_GENERATOR ? "long" : "int") + "Type");
}
} }
} }

@ -1406,7 +1406,7 @@ public class RenderGlobal implements IWorldAccess
{ {
if(Constants.COMPILE_CHUNK_ASYNC) { if(Constants.COMPILE_CHUNK_ASYNC) {
this.worldRenderersToUpdate.set(var9, (Object)null); this.worldRenderersToUpdate.set(var9, (Object)null);
if(!var10.addedToQueue) { if(!var10.addedToQueue && chunksToUpdate.size() <= 100) {
chunksToUpdate.add(var10); chunksToUpdate.add(var10);
var10.addedToQueue = true; var10.addedToQueue = true;
} }

Loading…
Cancel
Save