@@ -8,6 +8,7 @@ import net.minecraft.world.entity.player.PlayerInventory;
|
||||
import net.minecraft.world.inventory.InventoryCrafting;
|
||||
import net.minecraft.world.inventory.InventoryEnderChest;
|
||||
import net.minecraft.world.inventory.InventoryMerchant;
|
||||
import net.minecraft.world.level.block.BlockComposter;
|
||||
import net.minecraft.world.level.block.entity.IHopper;
|
||||
import net.minecraft.world.level.block.entity.TileEntityBarrel;
|
||||
import net.minecraft.world.level.block.entity.TileEntityBlastFurnace;
|
||||
@@ -496,6 +497,8 @@ public class CraftInventory implements Inventory {
|
||||
return InventoryType.GRINDSTONE;
|
||||
} else if (this instanceof CraftInventoryStonecutter) {
|
||||
return InventoryType.STONECUTTER;
|
||||
} else if (inventory instanceof BlockComposter.ContainerEmpty || inventory instanceof BlockComposter.ContainerInput || inventory instanceof BlockComposter.ContainerOutput) {
|
||||
return InventoryType.COMPOSTER;
|
||||
} else {
|
||||
return InventoryType.CHEST;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user