Server: remove premature optimization of findEntity()

This commit is contained in:
Dylan K. Taylor
2018-08-25 18:37:18 +01:00
parent fe6d546190
commit 032b20f659
5 changed files with 7 additions and 12 deletions

View File

@ -69,7 +69,7 @@ class EntityDamageByEntityEvent extends EntityDamageEvent{
* @return Entity|null
*/
public function getDamager() : ?Entity{
return $this->getEntity()->getLevel()->getServer()->findEntity($this->damagerEntityId, $this->getEntity()->getLevel());
return $this->getEntity()->getLevel()->getServer()->findEntity($this->damagerEntityId);
}
/**