mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
task tempt rework(should give a huge tps bump with a larg amount of entities), small stoptime fix
This commit is contained in:
parent
159d49ebf3
commit
4f9764dee3
6 changed files with 21 additions and 21 deletions
|
|
@ -70,7 +70,7 @@ class EntityAPI{
|
|||
}
|
||||
elseif(is_numeric($args[1])){//summon <mob> [amount]
|
||||
$amount = (int) $args[1];
|
||||
if($amount > 100){
|
||||
if($amount > 1000){
|
||||
return "Cannot spawn > 100 mobs";
|
||||
}
|
||||
$isBaby = false;
|
||||
|
|
@ -167,10 +167,7 @@ class EntityAPI{
|
|||
}
|
||||
|
||||
public function get($eid){
|
||||
if(isset($this->entities[$eid])){
|
||||
return $this->entities[$eid];
|
||||
}
|
||||
return false;
|
||||
return nullsafe($this->entities[$eid], false);
|
||||
}
|
||||
|
||||
public function remove($eid){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue