neoforged / Documentation

The repository containing Neo's documentation
MIT License
23 stars 36 forks source link

Saved Data is outdated #27

Closed tmvkrpxl0 closed 4 months ago

tmvkrpxl0 commented 7 months ago

https://github.com/neoforged/Documentation/blame/main/docs/datastorage/saveddata.md#L21

DimensionDataStorage#computeIfAbsent takes in three arguments: a function to load NBT data into a SD and return it, a supplier to construct a new instance of the SD, and the name of the .dat file stored within the data folder for the implemented level.

On 1.20.2, it takes in 2 arguments instead. The first argument is a record instead of function. The record in which takes in default constructor for the Saved Data, NBT deserializer, and nullable DFU Type.

Matyrobbrt commented 4 months ago

Closed by #47