Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

When using NML alongside other plugins, NML should not ruin the compatibility hash. #58

@zkxs

Description

@zkxs

The compatibility hash is normally altered for each loaded plugin. Imagine a function hash that takes a list of plugins. For vanilla, you'd have hash(). For NML, you'd have hash(nml). For someone running multiple plugins, you'd have hash(myCoolPlugin, otherPlugin, veryGoodPlugin).

Currently, if NML is the only loaded plugin it spoofs the hash to be hash(), enabling multiplayer compatibility with vanilla users. However, if there is another plugin being loaded as well, then NML completely disables its spoofing and uses hash(NML, otherPlugin). This means that a otherPlugin user not running NML will have hash(otherPlugin) and therefore be incompatible with the NML + otherPlugin user.

NML should fix this by removing itself from the hash, but leaving any other plugins.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions