Skip to content

Commit

Permalink
Disable codeforme
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeRNG committed Jul 5, 2023
1 parent 186bee1 commit 364a739
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/main/java/dev/dfonline/codeclient/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ public static void register(CommandDispatcher<FabricClientCommandSource> dispatc
// return 0;
// }));

dispatcher.register(literal("codeforme").executes(context -> {
if(!(CodeClient.location instanceof Dev)) return 1;
CodeClient.currentAction = new ClearPlot(() -> {
CodeClient.currentAction = new MoveToSpawn(() -> {
CodeClient.currentAction = new PlaceTemplates(Utility.TemplatesInInventory(), () -> {
Utility.sendMessage("Done!", ChatType.SUCCESS);
});
CodeClient.currentAction.init();
});
CodeClient.currentAction.init();
});
CodeClient.currentAction.init();
return 0;
}));
// dispatcher.register(literal("codeforme").executes(context -> {
// if(!(CodeClient.location instanceof Dev)) return 1;
// CodeClient.currentAction = new ClearPlot(() -> {
// CodeClient.currentAction = new MoveToSpawn(() -> {
// CodeClient.currentAction = new PlaceTemplates(Utility.TemplatesInInventory(), () -> {
// Utility.sendMessage("Done!", ChatType.SUCCESS);
// });
// CodeClient.currentAction.init();
// });
// CodeClient.currentAction.init();
// });
// CodeClient.currentAction.init();
// return 0;
// }));
}
}

0 comments on commit 364a739

Please sign in to comment.