Block: rename onEntityCollide() -> onEntityInside()

this better describes what the hook is for.
This commit is contained in:
Dylan K. Taylor
2019-01-20 18:09:47 +00:00
parent d586a18a16
commit 425ad6101f
11 changed files with 14 additions and 11 deletions

View File

@ -60,7 +60,7 @@ class Magma extends Solid{
return true;
}
public function onEntityCollide(Entity $entity) : void{
public function onEntityInside(Entity $entity) : void{
if(!$entity->isSneaking()){
$ev = new EntityDamageByBlockEvent($this, $entity, EntityDamageEvent::CAUSE_FIRE, 1);
$entity->attack($ev);