Fixed spyglass using animation (#5137)

This commit is contained in:
ipad54 2022-07-06 16:02:43 +03:00 committed by GitHub
parent fe93609c8d
commit 64e93ae4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,15 @@ declare(strict_types=1);
namespace pocketmine\item;
class Spyglass extends Item{
use pocketmine\player\Player;
class Spyglass extends Item implements Releasable{
public function getMaxStackSize() : int{
return 1;
}
public function canStartUsingItem(Player $player) : bool{
return true;
}
}