remove useless parameters

This commit is contained in:
Sunch 2025-01-11 21:48:33 +08:00
parent 1fd52e82a5
commit 6fb46ccfae
5 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,7 @@ abstract class Living extends Entity implements Pathfindable{
foreach($this->level->entityListPositioned[$ind] ?? [] as $entid){
if(($this->level->entityList[$entid] ?? null) instanceof Entity){
if($this->level->entityList[$entid]->isPushable() && $bb->intersectsWith($this->level->entityList[$entid]->boundingBox)){
$this->level->entityList[$entid]->applyCollision($this, true);
$this->level->entityList[$entid]->applyCollision($this);
}
}
}

View file

@ -397,7 +397,7 @@ class Minecart extends Vehicle{
if($e instanceof Entity && $e->eid != $this->eid && $e->eid != $this->linkedEntity){
if($e->isPushable() && $e->boundingBox->intersectsWith($bb)){
if($e->isPlayer()){
$this->applyCollision($e, true);
$this->applyCollision($e);
}else{
$e->applyCollision($this);
}