mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
goodbye php5, u wont be missed
This commit is contained in:
parent
2858b43748
commit
d7d346a237
16 changed files with 26 additions and 33 deletions
|
|
@ -395,7 +395,7 @@ class Level{
|
|||
foreach($this->usedChunks as $c => $eids){
|
||||
$xz = explode(".", $c); //bad idea, TODO use better indexes
|
||||
foreach($eids as $cid => $_){
|
||||
$p = nullsafe($this->server->clients[$cid], false);
|
||||
$p = $this->server->clients[$cid] ?? false;
|
||||
if($p instanceof Player){
|
||||
$dist = abs($xz[0] - ($p->entity->x >> 4)) + abs($xz[1] - ($p->entity->z >> 4));
|
||||
if($dist > 8){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue