NucleoidMC / fantasy

Library to support creating dimensions at runtime
GNU Lesser General Public License v3.0
95 stars 26 forks source link

Custom seed isn't applied after server restart #26

Closed oskarkraak closed 1 year ago

oskarkraak commented 1 year ago

The custom seed not being applied to the runtime world has been fixed by #22. When entering the world after the first server start everything works fine (/seed gives the correct seed). However, after restarting the server, the runtime world has the server seed (/seed gives the server seed) and proceeds to generate new chunks with it. This also happens when closing and reopening singleplayer worlds.

oskarkraak commented 1 year ago

This is because RuntimeWorld#getSeed is responsible for returning the custom seed but after a restart the world is loaded by Minecraft as a ServerWorld.