Skip to content

Commit

Permalink
Merge branch 'server-renderer' into 1.20.2-server-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Dec 25, 2023
2 parents 0d3f02c + 5a72a3a commit 3b02a81
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,7 @@ public PacketContainer buildFullMetaPacket(Player player, SingleWatcher watcher)

List<WrappedDataValue> wrappedDataValues = new ObjectArrayList<>();

Map<SingleValue<?>, Object> valuesToSent = new Object2ObjectOpenHashMap<>();
valuesToSent.putAll(watcher.getDirty());
watcher.getRegistry().forEach((single, v) ->
{
if (single.defaultValue().equals(v)) return;
valuesToSent.put(single, v);
});
Map<SingleValue<?>, Object> valuesToSent = watcher.getRegistry();

valuesToSent.forEach((single, v) ->
{
Expand Down

0 comments on commit 3b02a81

Please sign in to comment.