minecraft-data 3.23.0 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data.js +1 -1
- package/doc/history.md +8 -0
- package/lib/supportsFeature.js +2 -0
- package/minecraft-data/data/dataPaths.json +1 -1
- package/minecraft-data/data/pc/1.19.3/protocol.json +6397 -0
- package/minecraft-data/data/pc/common/features.json +12 -2
- package/minecraft-data/doc/history.md +8 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -1167,7 +1167,7 @@ module.exports =
|
|
|
1167
1167
|
get materials () { return require("./minecraft-data/data/pc/1.19.3/materials.json") },
|
|
1168
1168
|
get language () { return require("./minecraft-data/data/pc/1.19.3/language.json") },
|
|
1169
1169
|
get entities () { return require("./minecraft-data/data/pc/1.19.3/entities.json") },
|
|
1170
|
-
get protocol () { return require("./minecraft-data/data/pc/1.19.
|
|
1170
|
+
get protocol () { return require("./minecraft-data/data/pc/1.19.3/protocol.json") },
|
|
1171
1171
|
get windows () { return require("./minecraft-data/data/pc/1.16.1/windows.json") },
|
|
1172
1172
|
get version () { return require("./minecraft-data/data/pc/1.19.3/version.json") },
|
|
1173
1173
|
get foods () { return require("./minecraft-data/data/pc/1.19.3/foods.json") },
|
package/doc/history.md
CHANGED
package/lib/supportsFeature.js
CHANGED
|
@@ -34,6 +34,8 @@ module.exports = (versionObj, allVersions) => {
|
|
|
34
34
|
if (isVersionInRange(...versions)) map[featureName] = value
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
} else if (feature.version) {
|
|
38
|
+
map[featureName] = isVersionInRange(feature.version, feature.version)
|
|
37
39
|
} else {
|
|
38
40
|
const [minVer, maxVer] = feature.versions
|
|
39
41
|
map[featureName] = isVersionInRange(minVer, maxVer)
|