mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 11:16:57 +00:00
block: added constants for various integer property bounds
This commit is contained in:
@ -30,7 +30,7 @@ use function mt_rand;
|
||||
class Wheat extends Crops{
|
||||
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
if($this->age >= 7){
|
||||
if($this->age >= self::MAX_AGE){
|
||||
return [
|
||||
VanillaItems::WHEAT(),
|
||||
VanillaItems::WHEAT_SEEDS()->setCount(mt_rand(0, 3))
|
||||
|
Reference in New Issue
Block a user