issues
search
CryptoMorin
/
XSeries
Library for cross-version Minecraft Bukkit support and various efficient API methods.
https://www.spigotmc.org/threads/378136/
MIT License
390
stars
128
forks
source link
Armor trims and unreachable code fix
#231
Closed
ImSpooks
closed
12 months ago
ImSpooks
commented
12 months ago
Added support for Armor Trims
Changed attribute modifier to use doubles instead of integers
This has been a double ever since it was implemented in spigot 1.9
Fixed unreachable code in XItemStack
the following code would never reach when the server is on version 1.17 or higher, same goes for the other if checks below:
https://github.com/CryptoMorin/XSeries/blob/6cbc1fc226f2eb0463700626e9f5db58f96ba339/src/main/java/com/cryptomorin/xseries/XItemStack.java#L779
Same applies here:
https://github.com/CryptoMorin/XSeries/blob/6cbc1fc226f2eb0463700626e9f5db58f96ba339/src/main/java/com/cryptomorin/xseries/XItemStack.java#L305
CryptoMorin
commented
12 months ago
Thank you so much