2024-06-16 17:21:14 +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:18 -0700
|
|
|
|
Subject: [PATCH] Properly remove the experimental smithing inventory type
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftAbstractInventoryView.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftAbstractInventoryView.java
|
2024-12-03 15:47:48 +01:00
|
|
|
index 1b93774c35ca9d476e054bdef7d4971511231881..6331be47814d7116861ac6a87d3e97dc92993150 100644
|
2024-06-16 17:21:14 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftAbstractInventoryView.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftAbstractInventoryView.java
|
2024-12-03 15:47:48 +01:00
|
|
|
@@ -164,7 +164,6 @@ public abstract class CraftAbstractInventoryView implements InventoryView {
|
2024-06-16 17:21:14 +02:00
|
|
|
type = InventoryType.SlotType.CRAFTING;
|
|
|
|
break;
|
|
|
|
case ANVIL:
|
|
|
|
- case SMITHING:
|
|
|
|
case CARTOGRAPHY:
|
|
|
|
case GRINDSTONE:
|
|
|
|
case MERCHANT:
|
2024-12-03 15:47:48 +01:00
|
|
|
@@ -182,6 +181,7 @@ public abstract class CraftAbstractInventoryView implements InventoryView {
|
2024-06-16 17:21:14 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case LOOM:
|
|
|
|
+ case SMITHING: // Paper - properly remove experimental smithing inventory
|
|
|
|
case SMITHING_NEW:
|
|
|
|
if (slot == 3) {
|
|
|
|
type = InventoryType.SlotType.RESULT;
|