aboutsummaryrefslogtreecommitdiff
path: root/src/features/bestiary
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-29 10:57:57 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-29 10:57:57 +0800
commit996d99f533e8dcc8aa4a471097f5d6a93de894f4 (patch)
tree4a965697b77983f07457c2498c08738d0d2624c9 /src/features/bestiary
parent62b3e2b485fc576b5c3ca90035e44b29fdf48ae3 (diff)
downloadSoopyV2-996d99f533e8dcc8aa4a471097f5d6a93de894f4.tar.gz
SoopyV2-996d99f533e8dcc8aa4a471097f5d6a93de894f4.tar.bz2
SoopyV2-996d99f533e8dcc8aa4a471097f5d6a93de894f4.zip
fix api cant find current profile
Diffstat (limited to 'src/features/bestiary')
-rw-r--r--src/features/bestiary/index.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/features/bestiary/index.js b/src/features/bestiary/index.js
index e9106c5..ead03ef 100644
--- a/src/features/bestiary/index.js
+++ b/src/features/bestiary/index.js
@@ -144,11 +144,9 @@ class Bestiary extends Feature {
if (dataType !== "skyblock") return;
let currentProfile = {}
- let currentProfileTime = 0
data.profiles.forEach(p => {
- if (p.members[Player.getUUID().toString().replace(/-/g, "")].last_save > currentProfileTime) {
- currentProfileTime = p.members[Player.getUUID().toString().replace(/-/g, "")].last_save
+ if (p.selected) {
currentProfile = p.members[Player.getUUID().toString().replace(/-/g, "")]
}
})