Skip to content

Commit

Permalink
pain
Browse files Browse the repository at this point in the history
  • Loading branch information
DaFuqs committed Jan 22, 2025
1 parent 27129e8 commit 3d08c09
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand All @@ -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);

Expand Down

0 comments on commit 3d08c09

Please sign in to comment.