mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
small changes to entity ai(again =/)
This commit is contained in:
parent
c29d8dab9d
commit
978447cdbb
9 changed files with 44 additions and 41 deletions
|
|
@ -771,9 +771,10 @@ class Player{
|
|||
$this->dataPacket($pk);
|
||||
break;
|
||||
case "entity.animate":
|
||||
if($data["eid"] === $this->eid or $data["entity"]->level !== $this->level){
|
||||
if($data["eid"] === $this->eid or $data["entity"]->level->getName() === $this->level->getName()){
|
||||
break;
|
||||
}
|
||||
console("dis");
|
||||
$pk = new AnimatePacket;
|
||||
$pk->eid = $data["eid"];
|
||||
$pk->action = $data["action"]; //1 swing arm,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue