2023-06-09 20:50:00 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
|
|
Date: Thu, 8 Jun 2023 14:45:30 -0700
|
|
|
|
Subject: [PATCH] Properly remove the experimental smithing inventory type
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryType.java b/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
2024-04-25 23:21:18 +02:00
|
|
|
index f5bdd6b6df126abfa26ce727c80a5772d2ab1a1b..ccb09660e565bc2f7a653bda95fb38caccf7a060 100644
|
2023-06-09 20:50:00 +02:00
|
|
|
--- a/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
|
|
+++ b/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
2024-04-25 23:21:18 +02:00
|
|
|
@@ -156,7 +156,7 @@ public enum InventoryType {
|
2023-06-09 20:50:00 +02:00
|
|
|
*
|
2023-07-04 10:22:56 +02:00
|
|
|
* @deprecated use {@link #SMITHING}
|
2023-06-09 20:50:00 +02:00
|
|
|
*/
|
2023-07-04 10:22:56 +02:00
|
|
|
- @Deprecated
|
2023-06-09 20:50:00 +02:00
|
|
|
+ @Deprecated(forRemoval = true) // Paper
|
|
|
|
SMITHING_NEW(4, "Upgrade Gear"),
|
|
|
|
;
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/inventory/InventoryView.java b/src/main/java/org/bukkit/inventory/InventoryView.java
|
2023-12-05 18:20:55 +01:00
|
|
|
index 8d14426eb1ebea27058d5f22ea652f22d00fccb9..ac6c5c7a58c2c88b6cb0f6632fb53e8d67f8a059 100644
|
2023-06-09 20:50:00 +02:00
|
|
|
--- a/src/main/java/org/bukkit/inventory/InventoryView.java
|
|
|
|
+++ b/src/main/java/org/bukkit/inventory/InventoryView.java
|
|
|
|
@@ -370,7 +370,6 @@ public abstract class InventoryView {
|
|
|
|
type = InventoryType.SlotType.CRAFTING;
|
|
|
|
break;
|
|
|
|
case ANVIL:
|
|
|
|
- case SMITHING:
|
|
|
|
case CARTOGRAPHY:
|
|
|
|
case GRINDSTONE:
|
|
|
|
case MERCHANT:
|
|
|
|
@@ -388,6 +387,7 @@ public abstract class InventoryView {
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case LOOM:
|
|
|
|
+ case SMITHING: // Paper
|
|
|
|
case SMITHING_NEW:
|
|
|
|
if (slot == 3) {
|
|
|
|
type = InventoryType.SlotType.RESULT;
|