1
0
Fork 0
mirror of https://github.com/haselkern/Minecraft-ArmorStand.git synced 2025-05-17 15:05:33 +00:00

Add armor suggestions

I also changed a lot of the version comparison logic to be more sensible
by using comparable constants instead of always checking multiple
strings.
This commit is contained in:
Lars Martens 2021-08-28 17:55:31 +02:00
parent 4851d583bf
commit ecac9121a4
4 changed files with 115 additions and 24 deletions

10
src/Constants.js Normal file
View file

@ -0,0 +1,10 @@
// Constants for easily handling supported minecraft versions.
// Earlier versions should have lower numbers, so that comparisons work as expected.
export default {
MC_1_8: 1,
MC_1_9: 2,
MC_1_11: 3,
MC_1_13: 4,
MC_1_14: 5,
MC_1_16: 6
}