mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
Configurable feature seeds (#6531)
Co-authored-by: Thonk 30448663+ExcessiveAmountsOfZombies@users.noreply.github.com Also includes an option to auto-generate random seeds for all features and add them to the config.
This commit is contained in:
@@ -546,6 +546,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return config.getInt("world-settings." + worldName + "." + path, config.getInt("world-settings.default." + path));
|
||||
+ }
|
||||
+
|
||||
+ private long getLong(String path, long def) {
|
||||
+ config.addDefault("world-settings.default." + path, def);
|
||||
+ return config.getLong("world-settings." + worldName + "." + path, config.getLong("world-settings.default." + path));
|
||||
+ }
|
||||
+
|
||||
+ private float getFloat(String path, float def) {
|
||||
+ // TODO: Figure out why getFloat() always returns the default value.
|
||||
+ return (float) getDouble(path, (double) def);
|
||||
|
Reference in New Issue
Block a user