Bypass PaperReflectionHolder that try to understand our Mojang mapped reflection call as Spigot mapped

This commit is contained in:
2024-06-26 23:10:13 +02:00
parent ed0db5391d
commit 640b255e1d
3 changed files with 59 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ import fr.pandacube.lib.paper.reflect.wrapper.paper.PaperAdventure;
import fr.pandacube.lib.paper.reflect.wrapper.paper.QueuedChangesMapLong2Object;
import fr.pandacube.lib.paper.reflect.wrapper.paper.configuration.FallbackValue_Int;
import fr.pandacube.lib.paper.reflect.wrapper.paper.configuration.WorldConfiguration;
import fr.pandacube.lib.reflect.ReflectionWrapperBypass;
import fr.pandacube.lib.util.ThrowableAccumulator;
import static fr.pandacube.lib.reflect.wrapper.WrapperRegistry.initWrapper;
@@ -96,6 +97,9 @@ public class PandalibPaperReflect {
return;
isInit = true;
}
ReflectionWrapperBypass.enable();
initWrapperClasses();
}