From e33cb239238fc4ddb2b6e66b01081ef34cd31501 Mon Sep 17 00:00:00 2001 From: Gerrygames Date: Tue, 23 Jul 2019 12:37:57 +0200 Subject: [PATCH] remove redundant check --- .../viarewind/legacysupport/injector/BoundingBoxFixer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java b/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java index 9e044d3..c403b00 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java @@ -27,9 +27,7 @@ public class BoundingBoxFixer { Field boundingBoxNorthField, boundingBoxSouthField, boundingBoxWestField, boundingBoxEastField; - if (ProtocolRegistry.SERVER_PROTOCOL < 107) { - return; - } else if (ProtocolRegistry.SERVER_PROTOCOL <= 340) { + if (ProtocolRegistry.SERVER_PROTOCOL <= 340) { boundingBoxEastField = ReflectionAPI.getFieldAccessible(blockLadderClass, "b"); boundingBoxWestField = ReflectionAPI.getFieldAccessible(blockLadderClass, "c"); boundingBoxSouthField = ReflectionAPI.getFieldAccessible(blockLadderClass, "d");