Handle objective value changes. Although the client *shouldn't* be using this for any sort of keying, it may indeed be. Closes #1116 awaiting testing.

This commit is contained in:
md_5
2014-07-22 20:24:15 +10:00
parent c42d3a375f
commit 1b18e64fb2
3 changed files with 13 additions and 2 deletions

View File

@@ -119,7 +119,11 @@ public class DownstreamBridge extends PacketHandler
serverScoreboard.removeObjective( objective.getName() );
break;
case 2:
// TODO: Handle this if we ever make an API
Objective oldObjective = serverScoreboard.getObjective( objective.getName() );
if ( oldObjective != null )
{
oldObjective.setValue( objective.getValue() );
}
break;
default:
throw new IllegalArgumentException( "Unknown objective action: " + objective.getAction() );