You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The usage for looking up protocolVersions with node-minecraft-data seems to be slightly awkward, requiring calling the module with a supported version:
Yeah I guess require('minecraft-data').versionsByMinecraftVersion['1.5.2'] is indeed better.
It's possible by "abusing" the fact js functions are objects.
I'll do that.
The usage for looking up protocolVersions with node-minecraft-data seems to be slightly awkward, requiring calling the module with a supported version:
even though this is the same data in all datasets:
and you have to know a current dataset to lookup any version:
Wouldn't it be cleaner if you could lookup
versions
, andversionsByMinecraftVersion
like this:or perhaps to maintain the function-calling syntax, something like:
(I started to make this change myself, but got stuck on building the indexes)
The text was updated successfully, but these errors were encountered: