aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/commands/Backpack.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/rosegoldaddons/commands/Backpack.java')
-rw-r--r--src/main/java/rosegoldaddons/commands/Backpack.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/rosegoldaddons/commands/Backpack.java b/src/main/java/rosegoldaddons/commands/Backpack.java
index f69cd87..24b7563 100644
--- a/src/main/java/rosegoldaddons/commands/Backpack.java
+++ b/src/main/java/rosegoldaddons/commands/Backpack.java
@@ -16,6 +16,7 @@ import net.minecraftforge.client.event.GuiScreenEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import org.jetbrains.annotations.NotNull;
import rosegoldaddons.Main;
+import rosegoldaddons.utils.ChatUtils;
import java.util.ArrayList;
import java.util.Arrays;
@@ -50,7 +51,7 @@ public class Backpack implements ICommand {
openBP = true;
bpSlot = Integer.parseInt(args[0]);
} else {
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§cInvalid Arguments."));
+ ChatUtils.sendMessage("§cInvalid Arguments.");
return;
}
}