Update patches to latest 1.21.4 #1

Merged
Chaoscaot merged 242 commits from update/1.21.4 into main 2025-04-23 22:27:11 +02:00
Showing only changes of commit 775002a357 - Show all commits

View File

@@ -23,7 +23,7 @@
public boolean isDirty() { public boolean isDirty() {
return this.isDirty; return this.isDirty;
} }
@@ -169,6 +_,20 @@ @@ -169,6 +_,19 @@
return new SynchedEntityData(this.entity, this.itemsById); return new SynchedEntityData(this.entity, this.itemsById);
} }
} }
@@ -31,9 +31,8 @@
+ // Paper start + // Paper start
+ // We need to pack all as we cannot rely on "non default values" or "dirty" ones. + // We need to pack all as we cannot rely on "non default values" or "dirty" ones.
+ // Because these values can possibly be desynced on the client. + // Because these values can possibly be desynced on the client.
+ @Nullable
+ public List<SynchedEntityData.DataValue<?>> packAll() { + public List<SynchedEntityData.DataValue<?>> packAll() {
+ final List<SynchedEntityData.DataValue<?>> list = new ArrayList<>(); + final List<SynchedEntityData.DataValue<?>> list = new ArrayList<>(this.itemsById.length);
+ for (final DataItem<?> dataItem : this.itemsById) { + for (final DataItem<?> dataItem : this.itemsById) {
+ list.add(dataItem.value()); + list.add(dataItem.value());
+ } + }