Improved handling of temporary inventory windows

evacuation behaviour is now consistent regardless of who is doing it
This commit is contained in:
Dylan K. Taylor
2021-11-08 23:36:58 +00:00
parent 6efb1db107
commit ab002ca06d
7 changed files with 14 additions and 46 deletions

View File

@ -26,7 +26,7 @@ namespace pocketmine\inventory;
use pocketmine\crafting\CraftingGrid;
use pocketmine\player\Player;
final class PlayerCraftingInventory extends CraftingGrid{
final class PlayerCraftingInventory extends CraftingGrid implements TemporaryInventory{
public function __construct(private Player $holder){
parent::__construct(CraftingGrid::SIZE_SMALL);

View File

@ -25,7 +25,7 @@ namespace pocketmine\inventory;
use pocketmine\player\Player;
class PlayerCursorInventory extends SimpleInventory{
class PlayerCursorInventory extends SimpleInventory implements TemporaryInventory{
/** @var Player */
protected $holder;