This commit is contained in:
Cloudburst
2021-05-19 21:14:26 +02:00
parent ea3767e8ec
commit 8d0bb40f72

View File

@@ -1,7 +1,6 @@
package cloudburst.rejects.commands; package cloudburst.rejects.commands;
import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
import minegame159.meteorclient.systems.commands.Command; import minegame159.meteorclient.systems.commands.Command;
import minegame159.meteorclient.utils.player.InvUtils; import minegame159.meteorclient.utils.player.InvUtils;
import net.minecraft.command.CommandSource; import net.minecraft.command.CommandSource;
@@ -10,7 +9,6 @@ import net.minecraft.item.Items;
import net.minecraft.nbt.ListTag; import net.minecraft.nbt.ListTag;
import net.minecraft.nbt.StringTag; import net.minecraft.nbt.StringTag;
import net.minecraft.network.packet.c2s.play.BookUpdateC2SPacket; import net.minecraft.network.packet.c2s.play.BookUpdateC2SPacket;
import net.minecraft.text.LiteralText;
import net.minecraft.util.Hand; import net.minecraft.util.Hand;
import static com.mojang.brigadier.Command.SINGLE_SUCCESS; import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
@@ -18,7 +16,6 @@ import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
//Credit to the original author (https://github.com/Gaider10/BookDupe) (i think) for some of this code. //Credit to the original author (https://github.com/Gaider10/BookDupe) (i think) for some of this code.
public class BookDupeCommand extends Command { public class BookDupeCommand extends Command {
private final SimpleCommandExceptionType BOOK_NOT_FOUND_EXCEPTION = new SimpleCommandExceptionType(new LiteralText("No writeable book found in inventory."));
private final ItemStack DUPE_BOOK = new ItemStack(Items.WRITABLE_BOOK, 1); private final ItemStack DUPE_BOOK = new ItemStack(Items.WRITABLE_BOOK, 1);
public BookDupeCommand() { public BookDupeCommand() {