From f653df44f27ad6b523130c6d22fbffa12fb821d8 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 2 Mar 2022 10:28:32 +0100 Subject: [PATCH] Fix early registry access in xray patch --- patches/server/Anti-Xray.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Anti-Xray.patch b/patches/server/Anti-Xray.patch index c83ff6f322..c187af8f24 100644 --- a/patches/server/Anti-Xray.patch +++ b/patches/server/Anti-Xray.patch @@ -378,7 +378,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + } + -+ 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++) {