aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorhyperdefined <[email protected]>2024-08-14 08:39:45 -0400
committerGitHub <[email protected]>2024-08-14 14:39:45 +0200
commit9ab644ed290542a9e537d8f529bc6898a3da2e7d (patch)
tree29626b77ad1fa9793deded1a599fd6facebc9e14
parent7c9240f4a63b13be1fdcedbfb0270f9b49b75518 (diff)
downloadPaper-9ab644ed290542a9e537d8f529bc6898a3da2e7d.tar.gz
Paper-9ab644ed290542a9e537d8f529bc6898a3da2e7d.zip
Fix `TooltipContext.create` being wrong(#11254)
Co-authored-by: Jake Potrebic <[email protected]>
-rw-r--r--patches/api/0444-ItemStack-Tooltip-API.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/api/0444-ItemStack-Tooltip-API.patch b/patches/api/0444-ItemStack-Tooltip-API.patch
index 85f67a5b0b..90d49b0f02 100644
--- a/patches/api/0444-ItemStack-Tooltip-API.patch
+++ b/patches/api/0444-ItemStack-Tooltip-API.patch
@@ -87,7 +87,7 @@ index 0000000000000000000000000000000000000000..39ac768b3c5148544cb1aaf2c817e661
+}
diff --git a/src/main/java/io/papermc/paper/inventory/tooltip/TooltipContextImpl.java b/src/main/java/io/papermc/paper/inventory/tooltip/TooltipContextImpl.java
new file mode 100644
-index 0000000000000000000000000000000000000000..1d9bed6691f581529c53b577b26f1d0f902ccb0d
+index 0000000000000000000000000000000000000000..c9c0ce750f93ae55e0b2d322a738919474d2d5dd
--- /dev/null
+++ b/src/main/java/io/papermc/paper/inventory/tooltip/TooltipContextImpl.java
@@ -0,0 +1,16 @@
@@ -95,16 +95,16 @@ index 0000000000000000000000000000000000000000..1d9bed6691f581529c53b577b26f1d0f
+
+import org.jetbrains.annotations.NotNull;
+
-+record TooltipContextImpl(boolean isCreative, boolean isAdvanced) implements TooltipContext {
++record TooltipContextImpl(boolean isAdvanced, boolean isCreative) implements TooltipContext {
+
+ @Override
+ public @NotNull TooltipContext asCreative() {
-+ return new TooltipContextImpl(true, this.isAdvanced);
++ return new TooltipContextImpl(this.isAdvanced, true);
+ }
+
+ @Override
+ public @NotNull TooltipContext asAdvanced() {
-+ return new TooltipContextImpl(this.isCreative, true);
++ return new TooltipContextImpl(true, this.isCreative);
+ }
+}
diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java