mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
New way to spawn entities/tiles using a global register table, allow overriding default entity/tile classes via classes
This commit is contained in:
@ -22,7 +22,7 @@
|
||||
namespace pocketmine\event\entity;
|
||||
|
||||
use pocketmine\entity\Creature;
|
||||
use pocketmine\entity\DroppedItem;
|
||||
use pocketmine\entity\Item;
|
||||
use pocketmine\entity\Entity;
|
||||
use pocketmine\entity\Human;
|
||||
use pocketmine\entity\Projectile;
|
||||
@ -92,7 +92,7 @@ class EntitySpawnEvent extends EntityEvent{
|
||||
* @return bool
|
||||
*/
|
||||
public function isItem(){
|
||||
return $this->entity instanceof DroppedItem;
|
||||
return $this->entity instanceof Item;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user