9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 04:19:27 +00:00

fix(bukkit): 修正反射问题

This commit is contained in:
jhqwqmc
2025-07-28 09:11:25 +08:00
parent d6fbd575a4
commit 9b1ddb07e2

View File

@@ -3746,7 +3746,7 @@ public final class CoreReflections {
.orElse( null);
public static final Field field$ServerCommonPacketListenerImpl$closed = MiscUtils.requireNonNullIf(
ReflectionUtils.getDeclaredField(clazz$ServerCommonPacketListenerImpl, boolean.class, VersionHelper.isOrAbove1_21_6() ? 1 : 2),
ReflectionUtils.getDeclaredField(clazz$ServerCommonPacketListenerImpl, "closed", "n"),
VersionHelper.isOrAbove1_20_5()
);