Skip to content

Fix running server#41

Closed
GliczDev wants to merge 1 commit into
PaperMC:release/1.20.6from
GliczDev:fix/BitRandomSource
Closed

Fix running server#41
GliczDev wants to merge 1 commit into
PaperMC:release/1.20.6from
GliczDev:fix/BitRandomSource

Conversation

@GliczDev
Copy link
Copy Markdown

@GliczDev GliczDev commented Jun 5, 2024

BitRandomSource.java.patch fixes an exception while trying to use runServer

> Task :versions:v1_20_6:runServer
Exception in thread "main" java.lang.ExceptionInInitializerError
        at net.minecraft.world.level.biome.FixedBiomeSource.<clinit>(FixedBiomeSource.java:16)
        at net.minecraft.world.level.biome.BiomeSources.bootstrap(BiomeSources.java:8)
        at net.minecraft.core.registries.BuiltInRegistries.lambda$internalRegister$49(BuiltInRegistries.java:299)
        at net.minecraft.core.registries.BuiltInRegistries.lambda$createContents$50(BuiltInRegistries.java:312)
        at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:986)
        at net.minecraft.core.registries.BuiltInRegistries.createContents(BuiltInRegistries.java:311)
        at net.minecraft.core.registries.BuiltInRegistries.bootStrap(BuiltInRegistries.java:305)
        at net.minecraft.server.Bootstrap.bootStrap(Bootstrap.java:53)
        at net.minecraft.server.Main.main(Main.java:103)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 512
        at net.minecraft.world.level.levelgen.synth.SimplexNoise.<init>(SimplexNoise.java:46)
        at net.minecraft.world.level.levelgen.synth.PerlinSimplexNoise.<init>(PerlinSimplexNoise.java:29)
        at net.minecraft.world.level.levelgen.synth.PerlinSimplexNoise.<init>(PerlinSimplexNoise.java:16)
        at net.minecraft.world.level.biome.Biome.<clinit>(Biome.java:58)
        ... 9 more

Fixes an exception while trying to use `runServer`
@lynxplay
Copy link
Copy Markdown
Contributor

lynxplay commented Jun 5, 2024

I am unsure what our policy for this will be (given the somewhat experimental nature of mache), but imo the better solution would be to bump vineflower as the newer versions correctly emit the long cast.
Needs input from mini presumably tho.

@Machine-Maker
Copy link
Copy Markdown
Member

Yes, bump vineflower which fixes this issue.

@GliczDev GliczDev closed this Jun 5, 2024
@GliczDev GliczDev deleted the fix/BitRandomSource branch June 5, 2024 13:08
@GliczDev GliczDev mentioned this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants