mirror of
https://github.com/ViaVersion/ViaRewind-Legacy-Support.git
synced 2024-09-29 04:07:41 +02:00
remove redundant check
This commit is contained in:
parent
ba4d64cb56
commit
e33cb23923
@ -27,9 +27,7 @@ public class BoundingBoxFixer {
|
|||||||
|
|
||||||
Field boundingBoxNorthField, boundingBoxSouthField, boundingBoxWestField, boundingBoxEastField;
|
Field boundingBoxNorthField, boundingBoxSouthField, boundingBoxWestField, boundingBoxEastField;
|
||||||
|
|
||||||
if (ProtocolRegistry.SERVER_PROTOCOL < 107) {
|
if (ProtocolRegistry.SERVER_PROTOCOL <= 340) {
|
||||||
return;
|
|
||||||
} else if (ProtocolRegistry.SERVER_PROTOCOL <= 340) {
|
|
||||||
boundingBoxEastField = ReflectionAPI.getFieldAccessible(blockLadderClass, "b");
|
boundingBoxEastField = ReflectionAPI.getFieldAccessible(blockLadderClass, "b");
|
||||||
boundingBoxWestField = ReflectionAPI.getFieldAccessible(blockLadderClass, "c");
|
boundingBoxWestField = ReflectionAPI.getFieldAccessible(blockLadderClass, "c");
|
||||||
boundingBoxSouthField = ReflectionAPI.getFieldAccessible(blockLadderClass, "d");
|
boundingBoxSouthField = ReflectionAPI.getFieldAccessible(blockLadderClass, "d");
|
||||||
|
Loading…
Reference in New Issue
Block a user