only log a message if there are event cache entries, and formatting

This commit is contained in:
Adam 2022-02-25 21:44:13 +01:00
parent 93e02e852a
commit 758fea4195
2 changed files with 17 additions and 15 deletions

View file

@ -24,7 +24,7 @@ class FactorioEventUpdatePacket(
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
sealed interface FactorioEventUpdateKey {
@ -83,7 +83,7 @@ sealed class FactorioEventUpdate : FactorioEventUpdateKey {
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
sealed interface PlayerUpdateKey : FactorioEventUpdateKey {
@ -128,7 +128,7 @@ data class PlayerUpdate(
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
sealed interface EntityUpdateKey : EntityIdentifiers, FactorioEventUpdateKey {
@ -163,7 +163,7 @@ data class EntityUpdate(
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
sealed interface MapChunkUpdateKey : FactorioEventUpdateKey {
@ -195,4 +195,4 @@ data class MapChunkUpdate(
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */