SPIGOT-8043: Add DECORATED_POT InventoryType

Add missing check in CraftInventory as well
This commit is contained in:
JavierFlores09 2025-04-16 04:23:22 -03:00
parent d688748af6
commit 04b1695641
No known key found for this signature in database
GPG Key ID: 1F87D2321DA5949C

View File

@ -12,6 +12,7 @@ import net.minecraft.world.inventory.InventoryMerchant;
import net.minecraft.world.level.block.BlockComposter;
import net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity;
import net.minecraft.world.level.block.entity.CrafterBlockEntity;
import net.minecraft.world.level.block.entity.DecoratedPotBlockEntity;
import net.minecraft.world.level.block.entity.IHopper;
import net.minecraft.world.level.block.entity.TileEntityBarrel;
import net.minecraft.world.level.block.entity.TileEntityBlastFurnace;
@ -506,6 +507,8 @@ public class CraftInventory implements Inventory {
return InventoryType.COMPOSTER;
} else if (inventory instanceof TileEntityJukeBox) {
return InventoryType.JUKEBOX;
} else if (inventory instanceof DecoratedPotBlockEntity) {
return InventoryType.DECORATED_POT;
} else {
return InventoryType.CHEST;
}