From 3d08c096de5dc26948244b498333153b0741ada6 Mon Sep 17 00:00:00 2001 From: DaFuqs Date: Wed, 22 Jan 2025 14:57:09 +0100 Subject: [PATCH] pain --- .../spectrum/networking/SpectrumS2CPacketSender.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/dafuqs/spectrum/networking/SpectrumS2CPacketSender.java b/src/main/java/de/dafuqs/spectrum/networking/SpectrumS2CPacketSender.java index 8d4740be64..7eda12af6f 100644 --- a/src/main/java/de/dafuqs/spectrum/networking/SpectrumS2CPacketSender.java +++ b/src/main/java/de/dafuqs/spectrum/networking/SpectrumS2CPacketSender.java @@ -420,7 +420,8 @@ public static void sendMentalPresenceSync(ServerPlayerEntity player, double valu buf.writeDouble(value); ServerPlayNetworking.send(player, SpectrumS2CPackets.SYNC_MENTAL_PRESENCE, buf); } - + + // TODO: this kills the TPS, since it runs every tick public static void sendCompactingChestStatusUpdate(CompactingChestBlockEntity chest) { PacketByteBuf buf = PacketByteBufs.create(); buf.writeBlockPos(chest.getPos()); @@ -430,7 +431,8 @@ public static void sendCompactingChestStatusUpdate(CompactingChestBlockEntity ch ServerPlayNetworking.send(player, SpectrumS2CPackets.COMPACTING_CHEST_STATUS_UPDATE, buf); } } - + + // TODO: this kills the TPS, since it runs every tick public static void sendRestockingChestStatusUpdate(RestockingChestBlockEntity chest) { PacketByteBuf buf = PacketByteBufs.create(); buf.writeBlockPos(chest.getPos()); @@ -445,7 +447,8 @@ public static void sendRestockingChestStatusUpdate(RestockingChestBlockEntity ch ServerPlayNetworking.send(player, SpectrumS2CPackets.RESTOCKING_CHEST_STATUS_UPDATE, buf); } } - + + // TODO: this kills the TPS, since it runs every tick public static void sendBlackHoleChestUpdate(BlackHoleChestBlockEntity chest) { var xpStack = chest.getStack(BlackHoleChestBlockEntity.EXPERIENCE_STORAGE_PROVIDER_ITEM_SLOT);