Skip to content

allow for on the fly initialization of matslib #21

@Tarig0

Description

@Tarig0

When the user logs into the server the matslib is reinitialized based on the custom block list received from the server.

Create a command to reload the matslib from config file for server and client, ops only, or SP creative.
this will have the client/server that owns the world reload what is in it's config file and recreate the matslib sending the new list to all currently connected players. Does a check to ensure the list can only grow or stay the same length, else we could have rendering crashes. (we could have the matlib functions all return defaults to avert crashes)

Be sure to remove any previous localization keys on reinit - to keep memory usage down.

Re-Init matslib when the user starts their own world to ensure they don't accidentally screwup their world.

get data from the config file's BaseBlockList property can be stored in configurationlib.BaseBlockList

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions