Skip to content

Commit

Permalink
Expose add and mc in the command context
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Aug 13, 2024
1 parent aff54d7 commit 971fbed
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.Map;

public class MinecraftContext extends CommandContextImpl {
protected final Minecraft mc;
public final Minecraft mc;

public MinecraftContext(HeadlessMc ctx, Minecraft mc) {
super(ctx);
Expand Down Expand Up @@ -43,6 +43,11 @@ public MinecraftContext(HeadlessMc ctx, Minecraft mc) {
}
}

@Override
public void add(Command command) {
super.add(command);
}

@Override
public List<Map.Entry<String, String>> getCompletions(String line) {
return super.getCompletions(line);
Expand Down

0 comments on commit 971fbed

Please sign in to comment.