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:
parent
4851d583bf
commit
ecac9121a4
4 changed files with 115 additions and 24 deletions
10
src/Constants.js
Normal file
10
src/Constants.js
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue