Fixed an issue with /mmocore debug statmods

This commit is contained in:
Indyuce 2022-02-19 10:22:31 +01:00
parent 532fe31833
commit 18b2e032f3
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@
<dependency> <dependency>
<groupId>io.lumine</groupId> <groupId>io.lumine</groupId>
<artifactId>MythicLib-dist</artifactId> <artifactId>MythicLib-dist</artifactId>
<version>1.3-R28-SNAPSHOT</version> <version>1.3-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>

View File

@ -43,7 +43,7 @@ public class StatModifiersCommandTreeNode extends CommandTreeNode {
StatInstance instance = data.getStats().getInstance(stat); StatInstance instance = data.getStats().getInstance(stat);
sender.sendMessage("Stat Modifiers (" + instance.getKeys().size() + "):"); sender.sendMessage("Stat Modifiers (" + instance.getKeys().size() + "):");
for (String key : instance.getKeys()) { for (String key : instance.getKeys()) {
StatModifier mod = instance.getAttribute(key); StatModifier mod = instance.getModifier(key);
sender.sendMessage("- " + key + ": " + mod.getValue() + " " + mod.getType().name()); sender.sendMessage("- " + key + ": " + mod.getValue() + " " + mod.getType().name());
} }