Fix dodgy ignored PHPStan error

This commit is contained in:
Dylan K. Taylor
2024-11-03 14:39:41 +00:00
parent 82c416624d
commit c63d0ef1b6
2 changed files with 1 additions and 5 deletions

View File

@ -364,6 +364,7 @@ class InventoryManager{
FurnaceType::FURNACE => WindowTypes::FURNACE,
FurnaceType::BLAST_FURNACE => WindowTypes::BLAST_FURNACE,
FurnaceType::SMOKER => WindowTypes::SMOKER,
FurnaceType::CAMPFIRE, FurnaceType::SOUL_CAMPFIRE => throw new \LogicException("Campfire inventory cannot be displayed to a player")
},
$inv instanceof EnchantInventory => WindowTypes::ENCHANTMENT,
$inv instanceof BrewingStandInventory => WindowTypes::BREWING_STAND,