mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed spyglass using animation (#5137)
This commit is contained in:
parent
fe93609c8d
commit
64e93ae4e1
@ -23,9 +23,15 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace pocketmine\item;
|
namespace pocketmine\item;
|
||||||
|
|
||||||
class Spyglass extends Item{
|
use pocketmine\player\Player;
|
||||||
|
|
||||||
|
class Spyglass extends Item implements Releasable{
|
||||||
|
|
||||||
public function getMaxStackSize() : int{
|
public function getMaxStackSize() : int{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function canStartUsingItem(Player $player) : bool{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user