mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Block: rename onEntityCollide() -> onEntityInside()
this better describes what the hook is for.
This commit is contained in:
@ -1548,7 +1548,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
$vector = $this->temporalVector->setComponents(0, 0, 0);
|
||||
|
||||
foreach($this->getBlocksAround() as $block){
|
||||
$block->onEntityCollide($this);
|
||||
$block->onEntityInside($this);
|
||||
$block->addVelocityToEntity($this, $vector);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user