mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fix NPE with Scoreboards when updating
This commit is contained in:
parent
eea922c31f
commit
fc3e580550
@ -1,4 +1,5 @@
|
|||||||
Version 2.1.182
|
Version 2.1.182
|
||||||
|
Fixed a NPE with Scoreboards enabled when trying to update scoreboards
|
||||||
Players now receive XP from harvesting Sweet Berry bushes (double XP for harvesting fully grown berries)
|
Players now receive XP from harvesting Sweet Berry bushes (double XP for harvesting fully grown berries)
|
||||||
Sweet Berry Bush will no longer ready tools for Super Abilities
|
Sweet Berry Bush will no longer ready tools for Super Abilities
|
||||||
You can now use '.all' (for example: mcmmo.perks.xp.customboost.all) to give an XP perk to all skills
|
You can now use '.all' (for example: mcmmo.perks.xp.customboost.all) to give an XP perk to all skills
|
||||||
|
@ -428,14 +428,16 @@ public class ScoreboardWrapper {
|
|||||||
* Load new values into the sidebar.
|
* Load new values into the sidebar.
|
||||||
*/
|
*/
|
||||||
private void updateSidebar() {
|
private void updateSidebar() {
|
||||||
|
if(updateTask != null) {
|
||||||
try {
|
try {
|
||||||
updateTask.cancel();
|
updateTask.cancel();
|
||||||
}
|
} catch (Exception e) {
|
||||||
catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
updateTask = null;
|
updateTask = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (sidebarType == SidebarType.NONE) {
|
if (sidebarType == SidebarType.NONE) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user