New changes (#12)
* Shutdown fast * Change to order of releases * Revert "Shutdown fast" This reverts commit be2ea227718b19b00a0be0e59ec54bb87ffd5ea2. * Remove all shutdown hook, we do not care about generator worlds * Update README.md * Fix typo * Add OS-specific commands * More code improvements * Fix compilation * Add job timeout * Revert "Remove all shutdown hook, we do not care about generator worlds" This reverts commit 44117795360c9d67fab15566e2fc6436bfe9ac6f. * More aggressive server stopping
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ public class EnchantmentsDataGenerator implements IDataGenerator {
|
||||
List<Enchantment> incompatibleEnchantments = registry.stream()
|
||||
.filter(other -> !enchantment.canCombine(other))
|
||||
.filter(other -> other != enchantment)
|
||||
.collect(Collectors.toList());
|
||||
.toList();
|
||||
|
||||
JsonArray excludes = new JsonArray();
|
||||
for (Enchantment excludedEnchantment : incompatibleEnchantments) {
|
||||
|
||||
@@ -22,6 +22,6 @@ public class ReadyMixin {
|
||||
Path dataDumpDirectory = serverRootDirectory.resolve("minecraft-data").resolve(versionName);
|
||||
DataGenerators.runDataGenerators(dataDumpDirectory);
|
||||
Main.LOGGER.info("Done data generation!");
|
||||
DGU.getCurrentlyRunningServer().stop(false);
|
||||
Runtime.getRuntime().halt(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user