mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
arrows will attack entities
This commit is contained in:
parent
d8e242d0b5
commit
1fa7697503
7 changed files with 61 additions and 20 deletions
|
|
@ -11,11 +11,7 @@ class MobSpawner{
|
|||
}
|
||||
|
||||
public function countEntities(){
|
||||
$ents = 0;
|
||||
foreach($this->level->entityList as $e){
|
||||
if(!$e->isPlayer() && $e->class === ENTITY_MOB) ++$ents;
|
||||
}
|
||||
return $ents;
|
||||
return $this->level->totalMobsAmount;
|
||||
}
|
||||
|
||||
public function handle(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue