diff options
author | Jason Penilla <[email protected]> | 2024-04-25 11:16:53 -0700 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2024-04-25 11:16:53 -0700 |
commit | 820f999ba423081fb7be068f6cbbd986897baa5d (patch) | |
tree | cbc6afa10e0e1f2f8c8c414f500436fd074e96c5 /patches/server/0768-Mitigate-effects-of-WorldCreator-keepSpawnLoaded-ret.patch | |
parent | 04a25c2813450c054c534a1e138baf5147d16a24 (diff) | |
download | Paper-820f999ba423081fb7be068f6cbbd986897baa5d.tar.gz Paper-820f999ba423081fb7be068f6cbbd986897baa5d.zip |
Fixes for cb pkg ver
Diffstat (limited to 'patches/server/0768-Mitigate-effects-of-WorldCreator-keepSpawnLoaded-ret.patch')
-rw-r--r-- | patches/server/0768-Mitigate-effects-of-WorldCreator-keepSpawnLoaded-ret.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0768-Mitigate-effects-of-WorldCreator-keepSpawnLoaded-ret.patch b/patches/server/0768-Mitigate-effects-of-WorldCreator-keepSpawnLoaded-ret.patch index 1e968253ab..ba5b6fb01c 100644 --- a/patches/server/0768-Mitigate-effects-of-WorldCreator-keepSpawnLoaded-ret.patch +++ b/patches/server/0768-Mitigate-effects-of-WorldCreator-keepSpawnLoaded-ret.patch @@ -7,11 +7,11 @@ Subject: [PATCH] Mitigate effects of WorldCreator#keepSpawnLoaded ret type TODO: Remove in 1.21? diff --git a/src/main/java/org/bukkit/craftbukkit/util/Commodore.java b/src/main/java/org/bukkit/craftbukkit/util/Commodore.java -index b08de24fbc5addefe61d5b1919898775260d4a54..c46bb5ab1a9f365099a5e86ec6411e504fac372f 100644 +index 27ca966d3542794e8739b28bae555a0c8ba815fb..163e773a4782784f236175d7b0cf10ac4a574cac 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/Commodore.java +++ b/src/main/java/org/bukkit/craftbukkit/util/Commodore.java -@@ -373,6 +373,12 @@ public class Commodore { - super.visitMethodInsn(Opcodes.INVOKEVIRTUAL, CB_PACKAGE_PREFIX + "advancement/CraftAdvancement", "getDisplay0", desc, false); +@@ -379,6 +379,12 @@ public class Commodore { + super.visitMethodInsn(Opcodes.INVOKEVIRTUAL, runtimeCbPkgPrefix() + "advancement/CraftAdvancement", "getDisplay0", desc, false); return; } + if (owner.equals("org/bukkit/WorldCreator") && name.equals("keepSpawnLoaded") && desc.equals("(Lnet/kyori/adventure/util/TriState;)V")) { |