Skip to content

Commit

Permalink
optimise and delete useless line
Browse files Browse the repository at this point in the history
  • Loading branch information
nxyi committed Sep 10, 2024
1 parent ca08a2e commit 32b1086
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/dark/zewo2/commands/DupeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.screen.slot.SlotActionType;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Optional;

public class DupeCommand extends Command {
Expand All @@ -18,8 +19,8 @@ public DupeCommand() {
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.executes(context -> {
ArrayList<String> pages = new ArrayList<>();
pages.add("real");
mc.player.networkHandler.sendPacket(new BookUpdateC2SPacket(mc.player.getInventory().selectedSlot, pages, Optional.of("veryrealpopbobsexdupe2024realpopbobrealreal")));

mc.player.networkHandler.sendPacket(new BookUpdateC2SPacket(mc.player.getInventory().selectedSlot, pages, Optional.of("discord.gg/kja3YYV7R9 join now :3")));
return 1;
});
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/dark/zewo2/commands/TrashCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public TrashCommand() {
@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.executes(context -> {
assert mc.interactionManager != null && mc.player != null; // impossible, but still
mc.interactionManager.clickSlot(mc.player.currentScreenHandler.syncId, 36 + mc.player.getInventory().selectedSlot, 50, SlotActionType.SWAP, mc.player);

return SINGLE_SUCCESS;
Expand Down

0 comments on commit 32b1086

Please sign in to comment.