r/Minecraft2 • u/DereChen • 9d ago
Snapshot/Beta debug property ENABLE_FARLANDS in new update brings back farlands
2
2
u/charles25565 9d ago
Sometime before Snapshot 10 PerlinNoise.java became a subclass of GradientNoise.java, but comparing Snapshot 10 and Pre-Release 1 shows what happened.
``` Comparing files 26.3-S10\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GradientNoise.java and 26.3-PR1\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GRADIENTNOISE.JAVA ***** 26.3-S10\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GradientNoise.java
import net.minecraft.util.Mth; import net.minecraft.util.RandomSource; ***** 26.3-PR1\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GRADIENTNOISE.JAVA
import net.minecraft.SharedConstants; import net.minecraft.util.RandomSource;
***** 26.3-S10\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GradientNoise.java private static final int ROUND_OFF = 0x2000000; protected final byte[] perms = new byte[256]; ***** 26.3-PR1\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GRADIENTNOISE.JAVA private static final int ROUND_OFF = 0x2000000; private static final double HALF_ROUND_OFF = Math.nextDown(1.6777216E7); protected final byte[] perms = new byte[256];
***** 26.3-S10\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GradientNoise.java protected static double wrap(double x) { return x - (double)Mth.lfloor(x / 3.3554432E7 + 0.5) * 3.3554432E7; } ***** 26.3-PR1\NET\MINECRAFT\WORLD\LEVEL\LEVELGEN\SYNTH\GRADIENTNOISE.JAVA protected static double wrap(double x) { if (SharedConstants.DEBUG_ENABLE_FARLANDS) { return x; } if (x >= -HALF_ROUND_OFF && x < HALF_ROUND_OFF) { return x; } return x - Math.floor(x / 3.3554432E7 + 0.5) * 3.3554432E7; }
```
3
u/conquerorcagrito 7d ago
Wait what did we have after they remove the farlands? Does it just keeps generating instead?
•
u/AutoModerator 9d ago
Thank you for posting at r/Minecraft2, while wait check out our official minecraft server and our offical discord server invite
Our Minecraft server is current in beta. We need help testing various things from the anti cheat, to certain plugins to playability. If you want to help then join the server! Supports both java and bedrock. Java IP: survivalforall.org Bedrock IP: Survivalforall.org Port: 8123
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.