mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Fix CreativeCategory API (#7586)
This commit is contained in:
parent
e81e166e40
commit
b3d700c8c2
19
patches/server/Fix-CreativeCategory-API.patch
Normal file
19
patches/server/Fix-CreativeCategory-API.patch
Normal file
@ -0,0 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
||||
Date: Sat, 12 Mar 2022 15:19:27 -0800
|
||||
Subject: [PATCH] Fix CreativeCategory API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftCreativeCategory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftCreativeCategory.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftCreativeCategory.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftCreativeCategory.java
|
||||
@@ -0,0 +0,0 @@ public final class CraftCreativeCategory {
|
||||
.put(CreativeModeTab.TAB_REDSTONE, CreativeCategory.REDSTONE)
|
||||
.put(CreativeModeTab.TAB_TRANSPORTATION, CreativeCategory.TRANSPORTATION)
|
||||
.put(CreativeModeTab.TAB_MISC, CreativeCategory.MISC) // Interchangeable in NMS
|
||||
- .put(CreativeModeTab.TAB_MATERIALS, CreativeCategory.MISC) // Interchangeable in NMS
|
||||
+ // .put(CreativeModeTab.TAB_MATERIALS, CreativeCategory.MISC) // Interchangeable in NMS // Paper - can't have duplicate keys
|
||||
.put(CreativeModeTab.TAB_FOOD, CreativeCategory.FOOD)
|
||||
.put(CreativeModeTab.TAB_TOOLS, CreativeCategory.TOOLS)
|
||||
.put(CreativeModeTab.TAB_COMBAT, CreativeCategory.COMBAT)
|
Loading…
Reference in New Issue
Block a user