File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace pocketmine \entity ;
44
5- use pocketmine \item \Item as Item ;
5+ use pocketmine \item \Item as ItemItem ;
66use pocketmine \Player ;
77use pocketmine \nbt \tag \IntTag ;
8+ use pocketmine \item \Item ;
89
910class Sheep extends Animal implements Colorable{
1011 const NETWORK_ID = 13 ;
@@ -46,12 +47,12 @@ public function getVariant(){
4647 }
4748
4849 public function getDrops (){
49- return [Item ::get (Item ::WOOL , $ this ->getVariant (), 1 )];
50+ return [ItemItem ::get (ItemItem ::WOOL , $ this ->getVariant (), 1 )];
5051 }
5152
5253 public function sheer (){
5354 for ($ i = 0 ; $ i <= mt_rand (0 , 2 ); $ i ++){
54- $ this ->getLevel ()->dropItem ($ this , new Item (Item ::WOOL , $ this ->getVariant ()));//TODO: check amount
55+ $ this ->getLevel ()->dropItem ($ this , new ItemItem (ItemItem ::WOOL , $ this ->getVariant ()));//TODO: check amount
5556 }
5657 }
5758}
You can’t perform that action at this time.
0 commit comments