-
Bug
-
Resolution: Fixed
-
Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w06a, Minecraft 18w20c, Minecraft 18w21b, Minecraft 18w22c, Minecraft 1.13-pre1
-
Confirmed
The bug
If there is a score on a scoreboard objective created with pre-1.13 stats, for example stat.fallOneCm, scoreboards malfunction. Specifically, when this occurs, any changes to scoreboards during a play session are not stored to scoreboards.dat, and rejoining the world reverts all changes to their initial state. For example, if you open a world with a score on an objective based on stat.fallOneCm, then if you try to set your score, create or remove objectives, or change the sidebar display, etc., rejoining the world reverts all changes to how they were as if you never changed anything at all.
java.lang.NullPointerException
at bmo.a(SourceFile:348)
at java.util.HashMap$Values.forEach(Unknown Source)
at bmo.a(SourceFile:345)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.HashMap$ValueSpliterator.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.forEach(Unknown Source)
at bmo.i(SourceFile:344)
at bmp.b(SourceFile:148)
at bjz.a(SourceFile:95)
at bjz.a(SourceFile:81)
at qt.a(SourceFile:915)
at qt.a(SourceFile:867)
at net.minecraft.server.MinecraftServer.a(SourceFile:411)
at clm.v(SourceFile:142)
at net.minecraft.server.MinecraftServer.run(SourceFile:497)
at java.lang.Thread.run(Unknown Source)
How to reproduce
With invalid scoreboard.dat:
- Download scoreboard_INVALID.dat and notice that it contains two objectives, Test (dummy) and Fall (stat.fallOneCm), and there are scores on both objectives
- Create a world and put scoreboard_INVALID.dat into the data folder, and rename it to "scoreboard.dat"
- Join the world, and run
/scoreboard objectives setdisplay sidebar Test
- Run
/scoreboard players set test2 Test 1
- Run
/scoreboard objectives add Foo dummy
- Do any additional scoreboard changes you wish
- Notice that the sidebar now displays the objective and a score
- Exit and rejoin the world, notice that all scoreboard changes have reverted, the sidebar has cleared, test2's score doesn't exist, and the Foo objective no longer exists
With valid scoreboard.dat:
- Download scoreboard_VALID.dat and notice that it only contains objective Test (dummy) and a score on the objective. I have removed the Fall objective and all scores related to it.
- Create a world and put scoreboard_VALID.dat into the data folder, and rename it to "scoreboard.dat"
- Join the world, and run
/scoreboard objectives setdisplay sidebar Test
- Run
/scoreboard players set test2 Test 1
- Run
/scoreboard objectives add Foo dummy
- Do any additional scoreboard changes you wish
- Notice that the sidebar now displays the objective and a score
- Exit and rejoin the world, notice that all scoreboard changes are still present and nothing has reverted
- is duplicated by
-
MC-124234 Removed scoreboards appear again after a relog
- Resolved
-
MC-124306 NullPointerException while saving leads to unsaved scoreboard
- Resolved
-
MC-124397 Scoreboard scores/settings don't save when exit world
- Resolved
-
MC-124905 Scoreboard updates not saved when quit
- Resolved
-
MC-128406 Exception printed into Console when World is being saved
- Resolved
-
MC-128407 Recurring Error Message on my Server
- Resolved
-
MC-128536 scoreboards are not there
- Resolved
-
MC-129495 Scoreboard minecraft.used objective deleted on server restart
- Resolved
-
MC-129937 Scoreboards modification not saved after closing world
- Resolved
-
MC-130283 Scoreboard objectives/team disappear when logging out.
- Resolved
-
MC-130425 Scoreboard and teams not save
- Resolved
-
MC-130443 Team prefix and suffix still fail in 18w22a. So does team color.
- Resolved
-
MC-130707 [18w22c] [STDERR]: java.lang.NullPointerException
- Resolved
-
MC-131260 Some scoreboard objects generated from the old version (1.12.2) are lost after upgrading to 1.13
- Resolved
- relates to
-
MC-155097 Scoreboard objectives lost (not updated when converting a world to version with renamed stats)
- Reopened
-
MC-124025 Terracotta, spawn egg and entity statistics are lost on world upgrade
- Resolved