Fix CraftContainer#getNotchInventoryType detection of player inventory (#12751)
This commit is contained in:
parent
00e79dfb22
commit
6e021c8272
1 changed files with 0 additions and 2 deletions
|
@ -111,7 +111,6 @@ public class CraftContainer extends AbstractContainerMenu {
|
||||||
public static net.minecraft.world.inventory.MenuType getNotchInventoryType(Inventory inventory) {
|
public static net.minecraft.world.inventory.MenuType getNotchInventoryType(Inventory inventory) {
|
||||||
final InventoryType type = inventory.getType();
|
final InventoryType type = inventory.getType();
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case PLAYER:
|
|
||||||
case CHEST:
|
case CHEST:
|
||||||
case ENDER_CHEST:
|
case ENDER_CHEST:
|
||||||
case BARREL:
|
case BARREL:
|
||||||
|
@ -123,7 +122,6 @@ public class CraftContainer extends AbstractContainerMenu {
|
||||||
case 27:
|
case 27:
|
||||||
return net.minecraft.world.inventory.MenuType.GENERIC_9x3;
|
return net.minecraft.world.inventory.MenuType.GENERIC_9x3;
|
||||||
case 36:
|
case 36:
|
||||||
case 41: // PLAYER
|
|
||||||
return net.minecraft.world.inventory.MenuType.GENERIC_9x4;
|
return net.minecraft.world.inventory.MenuType.GENERIC_9x4;
|
||||||
case 45:
|
case 45:
|
||||||
return net.minecraft.world.inventory.MenuType.GENERIC_9x5;
|
return net.minecraft.world.inventory.MenuType.GENERIC_9x5;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue