mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
new ai task, fixes of old ones, php8 fixes
This commit is contained in:
parent
a907a7cf5e
commit
80bdddb817
13 changed files with 1581 additions and 1458 deletions
|
|
@ -72,8 +72,8 @@ class EntityAPI{
|
|||
}
|
||||
elseif(is_numeric($args[1])){//summon <mob> [amount]
|
||||
$amount = (int) $args[1];
|
||||
if($amount > 25){
|
||||
$output .= "Cannot spawn > 25 mobs";
|
||||
if($amount > 100){
|
||||
$output .= "Cannot spawn > 100 mobs";
|
||||
break;
|
||||
}
|
||||
$isBaby = false;
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class TimeAPI{
|
|||
case "day":
|
||||
case "sunset":
|
||||
case "night":
|
||||
if(substr($args[1], 0, 2) === "w:"){
|
||||
if(count($args) > 1 && substr($args[1], 0, 2) === "w:"){
|
||||
$levelName = preg_replace("/w:/", "", $args[1]);
|
||||
$level = $this->server->api->level->get($levelName);
|
||||
if($level instanceof Level){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue