diff options
author | Nassim Jahnke <[email protected]> | 2022-03-02 10:28:32 +0100 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2022-03-02 10:28:32 +0100 |
commit | d3caeeb6c27cc832030a90c714a69ad2457b6e95 (patch) | |
tree | 1a2409971c12d18f253e639f1966dcbc76ec083c | |
parent | b1afebbd52e1c8ca33edac09fcb72164e843f692 (diff) | |
download | Paper-d3caeeb6c27cc832030a90c714a69ad2457b6e95.tar.gz Paper-d3caeeb6c27cc832030a90c714a69ad2457b6e95.zip |
Fix early registry access in xray patch
-rw-r--r-- | patches/server/0361-Anti-Xray.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0361-Anti-Xray.patch b/patches/server/0361-Anti-Xray.patch index 5082695a81..dd5f283f00 100644 --- a/patches/server/0361-Anti-Xray.patch +++ b/patches/server/0361-Anti-Xray.patch @@ -258,7 +258,7 @@ index 0000000000000000000000000000000000000000..aabad39d13ead83042ec2e4dd7f4ed49 +} diff --git a/src/main/java/com/destroystokyo/paper/antixray/ChunkPacketBlockControllerAntiXray.java b/src/main/java/com/destroystokyo/paper/antixray/ChunkPacketBlockControllerAntiXray.java new file mode 100644 -index 0000000000000000000000000000000000000000..539fff5387d9e4fcf31a5e242d7275b66e0ade88 +index 0000000000000000000000000000000000000000..3916d99c746d952e7ae6c3dde750d08f3f208e3e --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/antixray/ChunkPacketBlockControllerAntiXray.java @@ -0,0 +1,660 @@ @@ -378,7 +378,7 @@ index 0000000000000000000000000000000000000000..539fff5387d9e4fcf31a5e242d7275b6 + } + } + -+ EmptyLevelChunk emptyChunk = new EmptyLevelChunk(level, new ChunkPos(0, 0), level.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY).getHolderOrThrow(Biomes.PLAINS)); ++ EmptyLevelChunk emptyChunk = new EmptyLevelChunk(level, new ChunkPos(0, 0), MinecraftServer.getServer().registryAccess().registryOrThrow(Registry.BIOME_REGISTRY).getHolderOrThrow(Biomes.PLAINS)); + BlockPos zeroPos = new BlockPos(0, 0, 0); + + for (int i = 0; i < solidGlobal.length; i++) { |