diff --git a/README.md b/README.md index eaa1eb92..2a49c438 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ At the time of writing, ViaFabricPlus is the only mod that supports joining all legacy combat mechanics, movement, and rendering changes to make the gameplay more feel like the old days. **On the other hand, ViaFabricPlus supports only the latest Minecraft client version, and only Fabric.** +If you need ViaFabricPlus for older versions of the game, you can use [ViaFabric](https://viaversion.com/fabric) ## Supported Server versions - Release (1.0.0 - 1.21) diff --git a/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java b/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java index 9a4fce2c..8e348f5a 100644 --- a/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java +++ b/src/main/java/de/florianmichael/viafabricplus/protocoltranslator/ProtocolTranslator.java @@ -293,23 +293,6 @@ public class ProtocolTranslator { } } - /** - * Returns true if first is closer to version than second - * - * @param version The version to compare to - * @param first The first version - * @param second The second version - * @return true if first is closer to version than second - */ - public static boolean isCloserTo(final ProtocolVersion version, final ProtocolVersion first, final ProtocolVersion second) { - if (version.getVersionType() == first.getVersionType() || version.getVersionType() == second.getVersionType()) { - return Math.abs(version.getVersion() - first.getVersion()) < Math.abs(version.getVersion() - second.getVersion()); - } else { - final int ordinal = version.getVersionType().ordinal(); - return Math.abs(ordinal - first.getVersionType().ordinal()) < Math.abs(ordinal - second.getVersionType().ordinal()); - } - } - /** * This method is used to initialize the whole Protocol Translator *