mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-20 15:39:37 +00:00
Revert rewriting rules to fix compatibility with Nova
This commit is contained in:
@@ -3,6 +3,15 @@ From: HaHaWTH <102713261+HaHaWTH@users.noreply.github.com>
|
|||||||
Date: Tue, 9 Nov 2077 00:00:00 +0800
|
Date: Tue, 9 Nov 2077 00:00:00 +0800
|
||||||
Subject: [PATCH] Add missing rewrite rules
|
Subject: [PATCH] Add missing rewrite rules
|
||||||
|
|
||||||
|
TODO: needs to check and fix it.
|
||||||
|
The new added rewriting rules cause incompatible with Nova plugin (The call Registry<*>::freeze in RegistryEventsPatch#transform)
|
||||||
|
It breaks kotlin reflection, makes it can't get all members of Registry class and its parent interfaces.
|
||||||
|
to validate using Nova plugin:
|
||||||
|
```
|
||||||
|
println(net.minecraft.core.Registry::class.members.size)
|
||||||
|
println(net.minecraft.core.Registry::class.java.methods.size)
|
||||||
|
```
|
||||||
|
|
||||||
Tracking PR: https://github.com/PaperMC/asm-utils/pull/48
|
Tracking PR: https://github.com/PaperMC/asm-utils/pull/48
|
||||||
|
|
||||||
diff --git a/src/main/java/io/papermc/paper/pluginremap/reflect/ReflectionRemapper.java b/src/main/java/io/papermc/paper/pluginremap/reflect/ReflectionRemapper.java
|
diff --git a/src/main/java/io/papermc/paper/pluginremap/reflect/ReflectionRemapper.java b/src/main/java/io/papermc/paper/pluginremap/reflect/ReflectionRemapper.java
|
||||||
Reference in New Issue
Block a user