fixed possible crash

This commit is contained in:
GameHerobrine 2026-06-11 02:02:41 +03:00
parent 38de7f2042
commit e678d16118

View file

@ -756,8 +756,8 @@ class Entity extends Position
public function positionRider($dead){
if($this->rider != 0){
$e = $this->level->entityList[$this->rider];
if($e === false) return;
$e = $this->level->entityList[$this->rider] ?? false;
if(!($e instanceof Entity)) return;
$v3 = $this->getRideHeight();
if($dead || $this->dead) $v3 = 0.01;