mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
143 fix
This commit is contained in:
parent
44728d21dc
commit
38d4bd6644
4 changed files with 8 additions and 37 deletions
|
|
@ -271,7 +271,6 @@ class Level{
|
|||
$e->update();
|
||||
}
|
||||
}
|
||||
|
||||
if(Entity::$updateOnTick && $server->ticks % 40 === 0){ //40 ticks delay
|
||||
$this->mobSpawner->handle();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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