Skip to content

Commit

Permalink
misc: Send all meta again
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Dec 25, 2023
1 parent b8f8179 commit 5a72a3a
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 5a72a3a

Please sign in to comment.