From 3312ebeb7ee92bffcab8cf87ed7c495e69904ea4 Mon Sep 17 00:00:00 2001 From: Ghzdude <44148655+ghzdude@users.noreply.github.com> Date: Thu, 2 Nov 2023 00:01:25 -0700 Subject: [PATCH 1/2] remove if check to fix syncing --- .../java/gregtech/api/metatileentity/SyncedTileEntityBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java b/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java index a1e99fe8e4f..11afcf2d9c0 100644 --- a/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java +++ b/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java @@ -32,7 +32,7 @@ public void writeCustomData(int discriminator, Consumer dataWriter dataWriter.accept(new PacketBuffer(backedBuffer)); byte[] updateData = Arrays.copyOfRange(backedBuffer.array(), 0, backedBuffer.writerIndex()); this.updates.add(discriminator, updateData); - if (this.updates.size() == 1) notifyWorld(); // if the data is not empty we already notified the world + notifyWorld(); // if the data is not empty we already notified the world } /** From 6a3ac2cd8606f7425bdcfd3a72e4f496073728dc Mon Sep 17 00:00:00 2001 From: Ghzdude <44148655+ghzdude@users.noreply.github.com> Date: Thu, 2 Nov 2023 00:13:27 -0700 Subject: [PATCH 2/2] yeet comment --- .../java/gregtech/api/metatileentity/SyncedTileEntityBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java b/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java index 11afcf2d9c0..7f0850a6ed3 100644 --- a/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java +++ b/src/main/java/gregtech/api/metatileentity/SyncedTileEntityBase.java @@ -32,7 +32,7 @@ public void writeCustomData(int discriminator, Consumer dataWriter dataWriter.accept(new PacketBuffer(backedBuffer)); byte[] updateData = Arrays.copyOfRange(backedBuffer.array(), 0, backedBuffer.writerIndex()); this.updates.add(discriminator, updateData); - notifyWorld(); // if the data is not empty we already notified the world + notifyWorld(); } /**