mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
mob cap should be fixed
This commit is contained in:
parent
3ce6040bf3
commit
5723f88cba
2 changed files with 4 additions and 4 deletions
|
|
@ -1561,16 +1561,16 @@ class Player{
|
|||
$data["eid"] = $packet->eid;
|
||||
$data["player"] = $this;
|
||||
|
||||
/*if($packet->slot === 0x28 or $packet->slot === 0){ //0 for 0.8.0 compatibility
|
||||
if($packet->slot === 0){
|
||||
$data["slot"] = -1;
|
||||
$data["item"] = BlockAPI::getItem(AIR, 0, 0);
|
||||
if($this->server->handle("player.equipment.change", $data) !== false){
|
||||
$this->slot = -1;
|
||||
}
|
||||
break;
|
||||
}else{*/
|
||||
}else{
|
||||
$packet->slot -= 9;
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
if(($this->gamemode & 0x01) === SURVIVAL){
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ class Level{
|
|||
continue;
|
||||
}
|
||||
|
||||
if($e->type === ENTITY_MOB && !$e->isPlayer()){
|
||||
if($e->class === ENTITY_MOB && !$e->isPlayer()){
|
||||
++$this->totalMobsAmount;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue