aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/commands/Rosepet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/rosegoldaddons/commands/Rosepet.java')
-rw-r--r--src/main/java/rosegoldaddons/commands/Rosepet.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/rosegoldaddons/commands/Rosepet.java b/src/main/java/rosegoldaddons/commands/Rosepet.java
index cf7fb34..25c869f 100644
--- a/src/main/java/rosegoldaddons/commands/Rosepet.java
+++ b/src/main/java/rosegoldaddons/commands/Rosepet.java
@@ -6,6 +6,7 @@ import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.BlockPos;
import org.jetbrains.annotations.NotNull;
+import rosegoldaddons.Main;
import rosegoldaddons.utils.ChatUtils;
import java.util.ArrayList;
@@ -34,7 +35,7 @@ public class Rosepet implements ICommand {
@Override
public void processCommand(ICommandSender sender, String[] args) throws CommandException {
if (args.length == 1) {
- Minecraft.getMinecraft().thePlayer.sendChatMessage("/pets");
+ Main.mc.thePlayer.sendChatMessage("/pets");
openPetS = true;
if(isNumeric(args[0])) {
petSlot = Integer.parseInt(args[0]);