mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Player: remove redundant parameter from checkNearEntities()
This commit is contained in:
parent
137a05c418
commit
a080a9b75c
@ -1501,7 +1501,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
return false; //currently has no server-side movement
|
return false; //currently has no server-side movement
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function checkNearEntities(int $tickDiff){
|
protected function checkNearEntities(){
|
||||||
foreach($this->level->getNearbyEntities($this->boundingBox->expandedCopy(1, 0.5, 1), $this) as $entity){
|
foreach($this->level->getNearbyEntities($this->boundingBox->expandedCopy(1, 0.5, 1), $this) as $entity){
|
||||||
$entity->scheduleUpdate();
|
$entity->scheduleUpdate();
|
||||||
|
|
||||||
@ -1709,7 +1709,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
if(!$this->isSpectator() and $this->isAlive()){
|
if(!$this->isSpectator() and $this->isAlive()){
|
||||||
Timings::$playerCheckNearEntitiesTimer->startTiming();
|
Timings::$playerCheckNearEntitiesTimer->startTiming();
|
||||||
$this->checkNearEntities($tickDiff);
|
$this->checkNearEntities();
|
||||||
Timings::$playerCheckNearEntitiesTimer->stopTiming();
|
Timings::$playerCheckNearEntitiesTimer->stopTiming();
|
||||||
|
|
||||||
if($this->speed !== null){
|
if($this->speed !== null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user