9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 18:09:27 +00:00

修复粒子

This commit is contained in:
XiaoMoMi
2025-06-28 00:55:56 +08:00
parent bd0244ceb8
commit 4780c6628d
2 changed files with 11 additions and 3 deletions

View File

@@ -1487,6 +1487,14 @@ public final class NetworkReflections {
"network.codec.StreamCodec"
);
public static final Object instance$ParticleTypes$STREAM_CODEC = !VersionHelper.isOrAbove1_20_5() ? null :
ReflectionUtils.getDeclaredField(CoreReflections.clazz$ParticleTypes, clazz$StreamCodec, 0);
public static final Object instance$ParticleTypes$STREAM_CODEC;
static {
try {
instance$ParticleTypes$STREAM_CODEC = !VersionHelper.isOrAbove1_20_5() ? null :
ReflectionUtils.getDeclaredField(CoreReflections.clazz$ParticleTypes, clazz$StreamCodec, 0).get(null);
} catch (ReflectiveOperationException e) {
throw new ReflectionInitException("Failed to initialize ParticleTypes$STREAM_CODEC", e);
}
}
}