Entity: rename checkBlockCollisions() to checkBlockIntersections()

This commit is contained in:
Dylan K. Taylor 2021-09-05 14:00:27 +01:00
parent 8be1f34736
commit 73cc841d0b
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 4 additions and 4 deletions

View File

@ -632,7 +632,7 @@ abstract class Entity{
$hasUpdate = false;
$this->checkBlockCollision();
$this->checkBlockIntersections();
if($this->location->y <= -16 and $this->isAlive()){
$ev = new EntityDamageEvent($this, EntityDamageEvent::CAUSE_VOID, 10);
@ -1181,7 +1181,7 @@ abstract class Entity{
);
$this->getWorld()->onEntityMoved($this);
$this->checkBlockCollision();
$this->checkBlockIntersections();
$this->checkGroundState($movX, $movY, $movZ, $dx, $dy, $dz);
$this->updateFallState($dy, $this->onGround);
@ -1243,7 +1243,7 @@ abstract class Entity{
return true;
}
protected function checkBlockCollision() : void{
protected function checkBlockIntersections() : void{
$vectors = [];
foreach($this->getBlocksAroundWithEntityInsideActions() as $block){

View File

@ -262,7 +262,7 @@ abstract class Projectile extends Entity{
}
$this->getWorld()->onEntityMoved($this);
$this->checkBlockCollision();
$this->checkBlockIntersections();
Timings::$entityMove->stopTiming();
}