Compare commits
2 Commits
b95e03512e
...
8a92b4d1df
Author | SHA1 | Date |
---|---|---|
FlorianMichael | 8a92b4d1df | |
FlorianMichael | 560b84e3f5 |
|
@ -18,7 +18,6 @@
|
|||
|
||||
package com.viaversion.viarewind.legacysupport.feature;
|
||||
|
||||
import com.viaversion.viarewind.legacysupport.BukkitPlugin;
|
||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
@ -82,7 +81,8 @@ public class BlockCollisionChanges {
|
|||
case "AxisAlignedBB": // Legacy NMS
|
||||
setAxisAlignedBB(boundingBox, values);
|
||||
break;
|
||||
case "VoxelShapeArray": // Paper
|
||||
case "VoxelShapeArray": // Paper 1.20.4-
|
||||
case "ArrayVoxelShape": // Paper 1.20.5+
|
||||
setVoxelShapeArray(boundingBox, values);
|
||||
break;
|
||||
case "AABBVoxelShape": // Tuinity
|
||||
|
|
|
@ -35,7 +35,9 @@ public class NMSUtil {
|
|||
private static Field playerConnectionField;
|
||||
|
||||
static {
|
||||
nmsVersionPackage = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
|
||||
if (BukkitPlugin.getInstance().getServerProtocol().olderThan(ProtocolVersion.v1_17)) {
|
||||
nmsVersionPackage = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
|
||||
}
|
||||
}
|
||||
|
||||
public static Class<?> getBlockPositionClass() {
|
||||
|
|
Loading…
Reference in New Issue