mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 02:34:30 +01:00
Add missing InventoryType
Upstream did not add a DECORATED_POT inventory type
This commit is contained in:
parent
82a8294625
commit
18496d0c01
1 changed files with 4 additions and 0 deletions
|
@ -529,6 +529,10 @@ public class CraftInventory implements Inventory {
|
|||
return InventoryType.COMPOSTER;
|
||||
} else if (this.inventory instanceof JukeboxBlockEntity) {
|
||||
return InventoryType.JUKEBOX;
|
||||
// Paper start
|
||||
} else if (this.inventory instanceof net.minecraft.world.level.block.entity.DecoratedPotBlockEntity) {
|
||||
return org.bukkit.event.inventory.InventoryType.DECORATED_POT;
|
||||
// Paper end
|
||||
} else {
|
||||
return InventoryType.CHEST;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue