mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 21:19:44 +00:00
fixed a possible crash + wth =
This commit is contained in:
parent
f7aeca11cc
commit
4fdf9f50e6
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class Pig extends Animal implements Rideable{
|
||||||
$this->linkEntity($e, SetEntityLinkPacket::TYPE_RIDE);
|
$this->linkEntity($e, SetEntityLinkPacket::TYPE_RIDE);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if($e->isRiding && $this->linkedEntity->eid = $e->eid){
|
if($e->isRiding && $this->linkedEntity instanceof Entity && $this->linkedEntity->eid === $e->eid){
|
||||||
$this->linkEntity($e, SetEntityLinkPacket::TYPE_REMOVE);
|
$this->linkEntity($e, SetEntityLinkPacket::TYPE_REMOVE);
|
||||||
$e->isRiding = false;
|
$e->isRiding = false;
|
||||||
$this->linkedEntity = 0;
|
$this->linkedEntity = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue