mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Improved exponentiation
This commit is contained in:
@@ -695,7 +695,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$generateQueue = new ReversePriorityQueue();
|
||||
for($X = -$radius; $X <= $radius; ++$X){
|
||||
for($Z = -$radius; $Z <= $radius; ++$Z){
|
||||
$distance = ($X * $X) + ($Z * $Z);
|
||||
$distance = $X ** 2 + $Z ** 2;
|
||||
if($distance > $radiusSquared){
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user