Skip to content

Commit 397db4e

Browse files
committed
Merge branch 'stable' into major-next
2 parents 08f8b08 + fde6654 commit 397db4e

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @pmmp/server-developers

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ updates:
66
interval: monthly
77
time: "10:00"
88
open-pull-requests-limit: 10
9+
- package-ecosystem: github-actions
10+
directory: "/"
11+
schedule:
12+
interval: monthly
13+
groups:
14+
github-actions:
15+
patterns: ["*"]

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
php: ['8.2', '8.3']
1212
name: PHP ${{ matrix.php }}
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup PHP
17-
uses: shivammathur/setup-php@2.29.0
17+
uses: shivammathur/setup-php@2.31.1
1818
with:
1919
php-version: ${{ matrix.php }}
2020

2121
- name: Cache Composer packages
22-
uses: actions/cache@v3
22+
uses: actions/cache@v4
2323
with:
2424
path: "~/.cache/composer"
2525
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}-v2"

src/Vector3.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ public function distance(Vector3 $pos) : float{
217217

218218
public function distanceSquared(Vector3 $pos) : float{
219219
$dx = $this->x - $pos->x;
220-
$dy = $this->y - $pos->y;
221-
$dz = $this->z - $pos->z;
222-
return ($dx * $dx) + ($dy * $dy) + ($dz * $dz);
220+
$dy = $this->y - $pos->y;
221+
$dz = $this->z - $pos->z;
222+
return ($dx * $dx) + ($dy * $dy) + ($dz * $dz);
223223
}
224224

225225
public function maxPlainDistance(Vector3|Vector2|float $x, float $z = 0) : float{

0 commit comments

Comments
 (0)