removed Exception throw from CustomAdvancements, fixed time reset at project start
This commit is contained in:
-1
@@ -39,7 +39,6 @@ public class CustomAdvancements extends Appliance {
|
|||||||
player.getAdvancementProgress(advancement).awardCriteria("criteria");
|
player.getAdvancementProgress(advancement).awardCriteria("criteria");
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
Main.logger().info("Advancement " + advancementName + " not found! (is Custom Advancements data pack loaded?)");
|
Main.logger().info("Advancement " + advancementName + " not found! (is Custom Advancements data pack loaded?)");
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -122,7 +122,7 @@ public class ProjectStart extends Appliance {
|
|||||||
|
|
||||||
IteratorUtil.worlds(World::getWorldBorder, worldBorder -> worldBorder.setSize(worldBorder.getMaxSize()));
|
IteratorUtil.worlds(World::getWorldBorder, worldBorder -> worldBorder.setSize(worldBorder.getMaxSize()));
|
||||||
IteratorUtil.worlds(world -> IteratorUtil.setGameRules(this.gameRulesAfterStart, false));
|
IteratorUtil.worlds(world -> IteratorUtil.setGameRules(this.gameRulesAfterStart, false));
|
||||||
IteratorUtil.worlds(world -> world.setFullTime(0));
|
Bukkit.getWorlds().getFirst().setFullTime(0);
|
||||||
|
|
||||||
this.netherFireLocations.forEach(location -> Objects.requireNonNull(this.startWorld).getBlockAt(location).setType(Material.FIRE));
|
this.netherFireLocations.forEach(location -> Objects.requireNonNull(this.startWorld).getBlockAt(location).setType(Material.FIRE));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user