Skip to content

Commit

Permalink
Thanks git for cutting these lines off
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Apr 20, 2021
1 parent 28261cc commit fee1ec5
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -434,6 +434,12 @@ public static void init(CommandDispatcher<CommandSource> dispatcher) {

registerDump("loot_tables", "Outputs the names of all registered loot tables", (CommandCallerPlayer) (player, stack) -> {
ServerLifecycleHooks.getCurrentServer()
.getLootTableManager()
.getLootTableKeys()
.stream()
.map(ResourceLocation::toString)
.sorted()
.forEach(CraftTweakerAPI::logDump);
send(new StringTextComponent(color("Loot table list generated! Check the crafttweaker.log file!", TextFormatting.GREEN)), player);
return 0;
});
Expand Down

0 comments on commit fee1ec5

Please sign in to comment.