Updated since tags

This commit is contained in:
Florian CUNY 2019-01-27 09:23:23 +01:00
parent 2b9bdf5cfe
commit e5170fc4b5
3 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,7 @@ public class Settings implements DataObject {
@ConfigComment("It can be spammy if there are a lot of superflat chunks to regenerate.")
@ConfigComment("However, as superflat chunks regeneration can be performance-intensive, it is recommended to keep")
@ConfigComment("this setting set to true, as it will help you know if there are regenerations taking place.")
@ConfigEntry(path = "logs.clean-super-flat-chunks", since = "1.1.1")
@ConfigEntry(path = "logs.clean-super-flat-chunks", since = "1.2.0")
private boolean logCleanSuperFlatChunks = true;
/*

View File

@ -63,7 +63,7 @@ public abstract class GameModeAddon extends Addon {
* Checks if world is governed by this game mode
* @param world - world to check
* @return true if in a world or false if not
* @since 1.1.1
* @since 1.2.0
*/
public boolean inWorld(World world) {
if (world == null) {
@ -118,7 +118,7 @@ public abstract class GameModeAddon extends Addon {
* @param worldName - name of world that this applies to
* @param id - id if any
* @return Chunk generator
* @since 1.1.1
* @since 1.2.0
*/
@NonNull
public abstract ChunkGenerator getDefaultWorldGenerator(String worldName, String id);

View File

@ -358,10 +358,10 @@ public class AddonsManager {
* @param worldName - name of world
* @param id - specific generator id
* @return ChunkGenerator or null if none found
* @since 1.1.1
* @since 1.2.0
*/
@Nullable
public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
return getGameModeAddons().stream().filter(gm -> gm.inWorld(Bukkit.getWorld(worldName))).findFirst().map(gm -> gm.getDefaultWorldGenerator(worldName, id)).orElse(null);
}
}