Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public boolean c(EntityHuman entityhuman) {

public static String getNotchInventoryType(InventoryType type) {
switch (type) {
case CREATIVE:
case CRAFTING:
throw new IllegalArgumentException("Can't open a " + type + " inventory!");
case WORKBENCH:
return "minecraft:crafting_table";
case FURNACE:
Expand All @@ -119,7 +122,8 @@ public static String getNotchInventoryType(InventoryType type) {
private void setupSlots(IInventory top, IInventory bottom) {
switch (cachedType) {
case CREATIVE:
break; // TODO: This should be an error?
case CRAFTING:
throw new IllegalArgumentException("Can't open a " + cachedType + " inventory!");
case PLAYER:
case CHEST:
setupChest(top, bottom);
Expand All @@ -130,7 +134,6 @@ private void setupSlots(IInventory top, IInventory bottom) {
case FURNACE:
setupFurnace(top, bottom);
break;
case CRAFTING: // TODO: This should be an error?
case WORKBENCH:
setupWorkbench(top, bottom);
break;
Expand Down