Skip to content

Commit f7e4abb

Browse files
committed
Revert "Fix strange imports"
This reverts commit 222146c.
1 parent 4ea45d9 commit f7e4abb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pocketmine/entity/Sheep.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
namespace pocketmine\entity;
44

5-
use pocketmine\item\Item as Item;
5+
use pocketmine\item\Item as ItemItem;
66
use pocketmine\Player;
77
use pocketmine\nbt\tag\IntTag;
8+
use pocketmine\item\Item;
89

910
class 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
}

0 commit comments

Comments
 (0)