From fe4996a0803c56634f1e63969e9a81f0d3e1c6c8 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Wed, 14 Aug 2024 08:39:45 -0400 Subject: [PATCH] Fix `TooltipContext.create` being wrong(#11254) Co-authored-by: Jake Potrebic --- patches/api/ItemStack-Tooltip-API.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/api/ItemStack-Tooltip-API.patch b/patches/api/ItemStack-Tooltip-API.patch index 43649dade3..829a63a7d6 100644 --- a/patches/api/ItemStack-Tooltip-API.patch +++ b/patches/api/ItemStack-Tooltip-API.patch @@ -95,16 +95,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + +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