From 45c44c8f7ef38b4f93230ece99ac7b38e4e1c15d Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 14 Feb 2024 11:13:58 +0100 Subject: [PATCH] Update VV usage --- .../protocol1_15_2to1_16/packets/BlockItemPackets1_16.java | 2 +- .../protocol1_15_2to1_16/packets/EntityPackets1_16.java | 2 +- .../protocol1_16_1to1_16_2/packets/EntityPackets1_16_2.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java index f5b0c635..e95e9eb7 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java @@ -171,7 +171,7 @@ public class BlockItemPackets1_16 extends com.viaversion.viabackwards.api.rewrit } if (chunk.isBiomeData()) { - if (wrapper.user().getProtocolInfo().getServerProtocolVersion() >= ProtocolVersion.v1_16_2.getVersion()) { + if (wrapper.user().getProtocolInfo().serverProtocolVersion().newerThanOrEquals(ProtocolVersion.v1_16_2)) { BiomeStorage biomeStorage = wrapper.user().get(BiomeStorage.class); for (int i = 0; i < 1024; i++) { int biome = chunk.getBiomeData()[i]; diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java index b319ba3c..b8dd772c 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_15_2to1_16/packets/EntityPackets1_16.java @@ -119,7 +119,7 @@ public class EntityPackets1_16 extends EntityRewriter { CompoundTag registry = wrapper.read(Type.NAMED_COMPOUND_TAG); - if (wrapper.user().getProtocolInfo().protocolVersion().lowerThanOrEquals(ProtocolVersion.v1_15_2)) { + if (wrapper.user().getProtocolInfo().protocolVersion().olderThanOrEquals(ProtocolVersion.v1_15_2)) { // Store biomes for <1.16 client handling CompoundTag biomeRegistry = registry.get("minecraft:worldgen/biome"); ListTag biomes = biomeRegistry.get("value");