From 83b2bf5df10f59a769ae93c537b22fc6aec93d31 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sat, 31 Dec 2022 23:47:20 +0300 Subject: [PATCH] more cleanup --- src/astarnavigator/algorithms/Pythagoras3D.php | 2 +- src/entity/Attribute.php | 0 src/entity/AttributeMap.php | 0 src/entity/Colorable.php | 0 src/entity/Explosive.php | 0 src/entity/SizeInfo.php | 0 src/entity/WalkingEntity.php | 13 ------------- src/network/protocol/ProtocolInfo.php | 4 ---- 8 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 src/entity/Attribute.php delete mode 100644 src/entity/AttributeMap.php delete mode 100644 src/entity/Colorable.php delete mode 100644 src/entity/Explosive.php delete mode 100644 src/entity/SizeInfo.php delete mode 100644 src/entity/WalkingEntity.php diff --git a/src/astarnavigator/algorithms/Pythagoras3D.php b/src/astarnavigator/algorithms/Pythagoras3D.php index c271923b..939c64db 100644 --- a/src/astarnavigator/algorithms/Pythagoras3D.php +++ b/src/astarnavigator/algorithms/Pythagoras3D.php @@ -5,7 +5,7 @@ class Pythagoras3D implements IDistanceAlgorithm public function calculate(PathTile $from, PathTile $to) { if($from instanceof PathTileXYZ && $to instanceof PathTileXYZ){ - return Utils::distance_noroot($from->asVector(), $to->asVector()); + return Utils::distance($from->asArray(), $to->asArray()); } return 666; } diff --git a/src/entity/Attribute.php b/src/entity/Attribute.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/AttributeMap.php b/src/entity/AttributeMap.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/Colorable.php b/src/entity/Colorable.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/Explosive.php b/src/entity/Explosive.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/SizeInfo.php b/src/entity/SizeInfo.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/WalkingEntity.php b/src/entity/WalkingEntity.php deleted file mode 100644 index 592b2ff5..00000000 --- a/src/entity/WalkingEntity.php +++ /dev/null @@ -1,13 +0,0 @@ -