Merge remote-tracking branch 'origin/master'

This commit is contained in:
retrooper committed 2024-07-18 00:09:35 +02:00
commit e3a984ca72
1 file changed
+5
@@ -146,6 +146,11 @@ public class AttributeSnapshotWrapper extends WrappedPacket {
}
}
holderClass = NMSUtils.getNMClassWithoutException("core.Holder");
if (holderClass != null) {
hasHolder = Reflection.getField(attributeSnapshotClass, holderClass, 0) != null;
}
if (attributeSnapshotConstructor == null) {
try {
attributeSnapshotConstructor = attributeSnapshotClass.getConstructor(attributeBaseClass, double.class, Collection.class);