mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
143 fix
This commit is contained in:
parent
44728d21dc
commit
38d4bd6644
4 changed files with 8 additions and 37 deletions
|
|
@ -11,7 +11,7 @@ class MobSpawner{
|
|||
|
||||
public function countEntities(){
|
||||
$ents = 0;
|
||||
foreach($this->level->entityList as $e){
|
||||
foreach($this->level->entityList as $e){ //TODO no for loop
|
||||
if(!$e->isPlayer() && $e->class === ENTITY_MOB){
|
||||
++$ents;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue