From 6c5eb72ab4f49b258a9fefdb67e45a0ef8ad366d Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 21 Jan 2021 14:56:45 -0800 Subject: [PATCH] Fixed an error in bstats where Retro Mode was reported as Standard mode and vice versa I might be the most dyslexic person ever --- src/main/java/com/gmail/nossr50/mcMMO.java | 4 ++-- src/main/java/com/gmail/nossr50/util/MobHealthbarUtils.java | 1 - src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 05c8c04a1..8b38343e0 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -257,9 +257,9 @@ public class mcMMO extends JavaPlugin { metrics.addCustomChart(new Metrics.SimplePie("version", () -> getDescription().getVersion())); if(Config.getInstance().getIsRetroMode()) - metrics.addCustomChart(new Metrics.SimplePie("scaling", () -> "Standard")); - else metrics.addCustomChart(new Metrics.SimplePie("scaling", () -> "Retro")); + else + metrics.addCustomChart(new Metrics.SimplePie("scaling", () -> "Standard")); } } catch (Throwable t) { diff --git a/src/main/java/com/gmail/nossr50/util/MobHealthbarUtils.java b/src/main/java/com/gmail/nossr50/util/MobHealthbarUtils.java index ffef8b238..57c7afe92 100644 --- a/src/main/java/com/gmail/nossr50/util/MobHealthbarUtils.java +++ b/src/main/java/com/gmail/nossr50/util/MobHealthbarUtils.java @@ -1,6 +1,5 @@ package com.gmail.nossr50.util; -import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.datatypes.MobHealthbarType; import com.gmail.nossr50.datatypes.meta.OldName; diff --git a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java index 716524762..f2ab26669 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -30,14 +30,12 @@ import org.bukkit.GameMode; import org.bukkit.Material; import org.bukkit.attribute.Attribute; import org.bukkit.attribute.AttributeInstance; -import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.*; import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.EntityDamageEvent.DamageCause; import org.bukkit.event.entity.EntityDamageEvent.DamageModifier; import org.bukkit.inventory.ItemStack; -import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.MetadataValue; import org.bukkit.potion.PotionEffectType; import org.bukkit.projectiles.ProjectileSource;