mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
remove useless parameters
This commit is contained in:
parent
1fd52e82a5
commit
6fb46ccfae
5 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue