Skip to content

Commit

Permalink
Fix item cheating function for 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Nov 24, 2015
1 parent fb2184a commit 9746cdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/mezz/jei/util/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;

import net.minecraftforge.client.ClientCommandHandler;

public class Commands {

public static void giveFullStack(@Nonnull ItemStack itemstack) {
Expand Down Expand Up @@ -42,6 +40,6 @@ public static void giveStack(@Nonnull ItemStack itemStack, int amount) {
}

String fullCommand = StringUtils.join(commandStrings, " ");
ClientCommandHandler.instance.executeCommand(sender, fullCommand);
sender.sendChatMessage(fullCommand);
}
}

0 comments on commit 9746cdf

Please sign in to comment.