Closed tastybento closed 3 years ago
Thanks for reporting! It's a bug indeed. It should be fixed in the latest dev build (build 42):
https://ci.codemc.io/job/rutgerkok/job/WorldGeneratorApi/
(Code change: https://github.com/rutgerkok/WorldGeneratorApi/commit/8b901bafc6c98c8c37cd1bd114a892032fc35329 )
Describe the bug The default settings for
TerrainSettings.stoneBlock
andTerrainSetting.waterBlock
are null in BaseNoiseGenerator so throw a NPE when invoked.Stack trace:
To Reproduce
This is the code to return the generator:
Class
OverWorldGenerator
implementsBaseNoiseGenerator
. With the previous API, it was not required to overridegetTerrainSettings
, except when you wanted to change stone and water to something else, e.g., for the nether or end. However in this API, it appears it is required even for the over-world otherwise you get the above NPE. So, I was able to work around the error by explicitly overriding this method, i.e.:I looked through
BaseNoiseGenerator
and the these fields are set to null with the commentSet to null to use the server default.
. As this code has not changed for a long time, I assume the server default is no longer set, so remains null?I assume this is a bug?