mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
StaticBlock class, entities performance boost(i think)
This commit is contained in:
parent
5d79c23c6a
commit
9cb7fbafaa
11 changed files with 232 additions and 58 deletions
|
|
@ -70,8 +70,8 @@ class EntityAPI{
|
|||
}
|
||||
elseif(is_numeric($args[1])){//summon <mob> [amount]
|
||||
$amount = (int) $args[1];
|
||||
if($amount > 100){
|
||||
return "Cannot spawn > 100 mobs";
|
||||
if($amount > 1000){
|
||||
return "Cannot spawn > 1000 mobs";
|
||||
}
|
||||
$isBaby = false;
|
||||
if(isset($args[2]) and strtolower($args[2]) === 'baby'){//summon <mob> [amount] [baby]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue