From 8f417b6caa11a6102ffc1a1d6936bd1c08a65f82 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 14 Feb 2024 19:27:16 +0100 Subject: [PATCH] Rename methods once again --- .../java/com/viaversion/viabackwards/BukkitPlugin.java | 8 ++++---- .../packets/BlockItemPackets1_16.java | 2 +- .../protocol1_15_2to1_16/packets/EntityPackets1_16.java | 2 +- .../packets/EntityPackets1_16_2.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bukkit/src/main/java/com/viaversion/viabackwards/BukkitPlugin.java b/bukkit/src/main/java/com/viaversion/viabackwards/BukkitPlugin.java index d33c743d..4044a4f4 100644 --- a/bukkit/src/main/java/com/viaversion/viabackwards/BukkitPlugin.java +++ b/bukkit/src/main/java/com/viaversion/viabackwards/BukkitPlugin.java @@ -46,16 +46,16 @@ public class BukkitPlugin extends JavaPlugin implements ViaBackwardsPlatform { private void enable() { ProtocolVersion protocolVersion = Via.getAPI().getServerVersion().highestSupportedProtocolVersion(); - if (protocolVersion.newerThanOrEquals(ProtocolVersion.v1_17)) { + if (protocolVersion.newerThanOrEqualTo(ProtocolVersion.v1_17)) { new PlayerItemDropListener(this).register(); } - if (protocolVersion.newerThanOrEquals(ProtocolVersion.v1_16)) { + if (protocolVersion.newerThanOrEqualTo(ProtocolVersion.v1_16)) { new FireExtinguishListener(this).register(); } - if (protocolVersion.newerThanOrEquals(ProtocolVersion.v1_14)) { + if (protocolVersion.newerThanOrEqualTo(ProtocolVersion.v1_14)) { new LecternInteractListener(this).register(); } - if (protocolVersion.newerThanOrEquals(ProtocolVersion.v1_12)) { + if (protocolVersion.newerThanOrEqualTo(ProtocolVersion.v1_12)) { new FireDamageListener(this).register(); } } 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 e95e9eb7..91502e78 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().serverProtocolVersion().newerThanOrEquals(ProtocolVersion.v1_16_2)) { + if (wrapper.user().getProtocolInfo().serverProtocolVersion().newerThanOrEqualTo(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 b8dd772c..d3e3149e 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().olderThanOrEquals(ProtocolVersion.v1_15_2)) { + if (wrapper.user().getProtocolInfo().protocolVersion().olderThanOrEqualTo(ProtocolVersion.v1_15_2)) { // Store biomes for <1.16 client handling CompoundTag biomeRegistry = registry.get("minecraft:worldgen/biome"); ListTag biomes = biomeRegistry.get("value");