Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.19] Enabling anti-xray causes an error. #33

Closed
Pantera07 opened this issue Jun 12, 2022 · 2 comments
Closed

[1.19] Enabling anti-xray causes an error. #33

Pantera07 opened this issue Jun 12, 2022 · 2 comments

Comments

@Pantera07
Copy link

Pufferfish-1.19 #2
Enabling anti-xray causes an error.

paper-world-defaults.yml

anticheat:
  anti-xray:
    enabled: true

log

[22:27:15] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NullPointerException: Cannot invoke "net.minecraft.util.RandomSource.a(int)" because the return value of "net.minecraft.server.level.WorldServer.getThreadUnsafeRandom()" is null
	at net.minecraft.world.level.chunk.LevelChunk.<init>(LevelChunk.java:139) ~[?:?]
	at net.minecraft.world.level.chunk.LevelChunk.<init>(LevelChunk.java:110) ~[?:?]
	at net.minecraft.world.level.chunk.EmptyLevelChunk.<init>(EmptyLevelChunk.java:20) ~[?:?]
	at com.destroystokyo.paper.antixray.ChunkPacketBlockControllerAntiXray.<init>(ChunkPacketBlockControllerAntiXray.java:127) ~[pufferfish-1.19.jar:git-Pufferfish-2]
	at net.minecraft.world.level.Level.<init>(Level.java:375) ~[?:?]
	at net.minecraft.server.level.ServerLevel.<init>(ServerLevel.java:491) ~[?:?]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:585) ~[pufferfish-1.19.jar:git-Pufferfish-2]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:421) ~[pufferfish-1.19.jar:git-Pufferfish-2]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[pufferfish-1.19.jar:git-Pufferfish-2]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1123) ~[pufferfish-1.19.jar:git-Pufferfish-2]
	at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:304) ~[pufferfish-1.19.jar:git-Pufferfish-2]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
@BillyGalbreath
Copy link

Kevin is aware. Here's a simple fix if you know how to add patches and compile yourself PurpurMC/Purpur@cdea78c

kev626 added a commit that referenced this issue Jun 13, 2022
@kev626
Copy link
Member

kev626 commented Jun 13, 2022

Fixed in a8543a4

@kev626 kev626 closed this as completed Jun 13, 2022
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

No branches or pull requests

3 participants