Skip to content

Commit

Permalink
Update to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
stonar96 committed Jul 13, 2024
1 parent 4567010 commit 2be47e4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Libs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<name>Libs</name>
<description>Libs.</description>
<properties>
<minecraftVersion>1.20.6</minecraftVersion>
<minecraftVersion>1.21</minecraftVersion>
<paperVersion>${minecraftVersion}-R0.1-SNAPSHOT</paperVersion>
</properties>
<repositories>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Paper Anti-Xray can't hide ores that are exposed to air in caves for example (se

![RayTraceAntiXray](https://user-images.githubusercontent.com/18699205/185815590-4b2efce6-5a26-4579-b079-e9958a454fd0.gif)
## How to install
* Download and install [Paper](https://papermc.io/downloads/paper) 1.20.6. Folia is supported since Minecraft 1.20.1.
* Download and install [Paper](https://papermc.io/downloads/paper) 1.21. Folia is supported since Minecraft 1.20.1.
* Enable [Paper Anti-Xray](https://docs.papermc.io/paper/anti-xray) using `engine-mode: 1`.
* Download and install [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/).
* Download and install [RayTraceAntiXray](https://builtbybit.com/resources/raytraceantixray.24914/). (For older Minecraft versions, browse the update history.)
Expand Down
10 changes: 2 additions & 8 deletions RayTraceAntiXray/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.vanillage.raytraceantixray</groupId>
<artifactId>raytraceantixray-parent</artifactId>
<version>1.14.0</version>
<version>1.15.0</version>
</parent>
<artifactId>raytraceantixray</artifactId>
<name>RayTraceAntiXray</name>
Expand Down Expand Up @@ -40,12 +40,6 @@
<version>${paperVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-mojangapi</artifactId>
<version>${paperVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-server</artifactId>
Expand All @@ -56,7 +50,7 @@
<dependency>
<groupId>com.mojang</groupId>
<artifactId>datafixerupper</artifactId>
<version>7.0.14</version>
<version>8.0.16</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public ChunkPacketBlockControllerAntiXray(RayTraceAntiXray plugin, boolean rayTr
traceGlobal = new boolean[Block.BLOCK_STATE_REGISTRY.size()];

for (String id : toTrace) {
Block block = BuiltInRegistries.BLOCK.getOptional(new ResourceLocation(id)).orElse(null);
Block block = BuiltInRegistries.BLOCK.getOptional(ResourceLocation.parse(id)).orElse(null);

// Don't obfuscate air because air causes unnecessary block updates and causes block updates to fail in the void
if (block != null && !block.defaultBlockState().isAir()) {
Expand Down
4 changes: 2 additions & 2 deletions RayTraceAntiXray/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: RayTraceAntiXray
main: com.vanillage.raytraceantixray.RayTraceAntiXray
version: 1.14.0
api-version: '1.20'
version: 1.15.0
api-version: '1.21'
description: Paper plugin for server-side async multithreaded ray tracing to hide ores that are exposed to air using Paper Anti-Xray engine-mode 1.
load: STARTUP
depend:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.vanillage.raytraceantixray</groupId>
<artifactId>raytraceantixray-parent</artifactId>
<version>1.14.0</version>
<version>1.15.0</version>
<packaging>pom</packaging>
<name>RayTraceAntiXray-Parent</name>
<description>Paper plugin for server-side async multithreaded ray tracing to hide ores that are exposed to air using Paper Anti-Xray engine-mode 1.</description>
Expand All @@ -11,7 +11,7 @@
<module>RayTraceAntiXray</module>
</modules>
<properties>
<minecraftVersion>1.20.6</minecraftVersion>
<minecraftVersion>1.21</minecraftVersion>
<paperVersion>${minecraftVersion}-R0.1-SNAPSHOT</paperVersion>
</properties>
</project>

0 comments on commit 2be47e4

Please sign in to comment.