mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
Fix CraftContainer#getNotchInventoryType detection of player inventory (#12751)
This commit is contained in:
@@ -111,7 +111,6 @@ public class CraftContainer extends AbstractContainerMenu {
|
||||
public static net.minecraft.world.inventory.MenuType getNotchInventoryType(Inventory inventory) {
|
||||
final InventoryType type = inventory.getType();
|
||||
switch (type) {
|
||||
case PLAYER:
|
||||
case CHEST:
|
||||
case ENDER_CHEST:
|
||||
case BARREL:
|
||||
@@ -123,7 +122,6 @@ public class CraftContainer extends AbstractContainerMenu {
|
||||
case 27:
|
||||
return net.minecraft.world.inventory.MenuType.GENERIC_9x3;
|
||||
case 36:
|
||||
case 41: // PLAYER
|
||||
return net.minecraft.world.inventory.MenuType.GENERIC_9x4;
|
||||
case 45:
|
||||
return net.minecraft.world.inventory.MenuType.GENERIC_9x5;
|
||||
|
Reference in New Issue
Block a user