SPIGOT-6570: Missing InventoryType: COMPOSTER

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-06-17 08:29:15 +10:00
parent b9782609ca
commit 4b86eeff64
2 changed files with 20 additions and 5 deletions

View File

@@ -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;
}