mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49: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);
|
||||
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);
|
||||
$e->isRiding = false;
|
||||
$this->linkedEntity = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue