Use new BlockData API for Leaderboards.

This commit fixes a bug on Minecraft 1.14 servers where leaderboards would cause a NullPointerException due to the MaterialData API being broken. Instead, we now use the new BlockData API, and everything is back to normal.

Fixes #536
This commit is contained in:
Andreas Troelsen
2019-07-20 22:55:49 +02:00
parent 996a592023
commit cc0a2f30b4
2 changed files with 34 additions and 12 deletions
+1
View File
@@ -12,6 +12,7 @@ These changes will (most likely) be included in the next version.
## [Unreleased]
- Tridents and crossbows are now considered weapons with regards to the `unbreakable-weapons` flag. All class items that have durability now have their unbreakable flag set to true unless the `unbreakable-weapons` and/or `unbreakable-armor` flags are set to `false`.
- Leaderboards now work again on servers running Minecraft 1.14+.
- MobArena no longer crashes when players try to join with items that lower their max health below the default of 20. Players with lower max health will notice missing health in the lobby, but it will quickly regenerate to full.
- Food levels no longer deplete for players in the lobby and spectator area.
- Wither skeletons now correctly spawn with stone swords.