Skip to content

Commit

Permalink
Merge pull request #2105 from DuckySoLucky/fixEffects
Browse files Browse the repository at this point in the history
fix: effects erroring
  • Loading branch information
metalcupcake5 authored Dec 1, 2023
2 parents e021bdb + 0589947 commit c210385
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/stats/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,7 @@ export function getMisc(profile, userProfile, hypixelProfile) {
misc.mythological_event = userProfile.player_stats.mythos;
}

if (
userProfile.player_data.active_effects !== undefined ||
userProfile.player_data.paused_effects !== undefined ||
userProfile.player_data.disabled_potion_effects !== undefined
) {
if (userProfile.player_data !== undefined) {
misc.effects = {
active: userProfile.player_data.active_effects || [],
paused: userProfile.player_data.paused_effects || [],
Expand Down

0 comments on commit c210385

Please sign in to comment.