Update Forge to enable Mixins

This commit is contained in:
shedaniel
2021-12-02 17:25:23 +08:00
parent 43dc2500e8
commit 582e0a001c
5 changed files with 14 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ public class MixinChunkSerializer {
private static ThreadLocal<WeakReference<ServerLevel>> level = new ThreadLocal<>();
@Inject(method = "read", at = @At("HEAD"))
private static void read(ServerLevel worldIn, StructureManager templateManagerIn, PoiManager poiManager, ChunkPos pos, CompoundTag compound, CallbackInfoReturnable<ProtoChunk> cir) {
private static void read(ServerLevel worldIn, PoiManager arg2, ChunkPos arg3, CompoundTag arg4, CallbackInfoReturnable<ProtoChunk> cir) {
level.set(new WeakReference<>(worldIn));
}