diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt index af8b509b3..084f7276b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt @@ -1101,6 +1101,11 @@ class MatteryPlayer(val ply: Player) { if (NeoForge.EVENT_BUS.post(PreTick(this)).isCanceled) return + if (shouldSendIteration) { + sendNetwork(PlayerIterationPacket(iteration, deathLog)) + shouldSendIteration = false + } + ticksIExist++ tickList.tick() @@ -1341,11 +1346,6 @@ class MatteryPlayer(val ply: Player) { } } - if (shouldSendIteration) { - sendNetwork(PlayerIterationPacket(iteration, deathLog)) - shouldSendIteration = false - } - if (hasExopack && ply.containerMenu == ply.inventoryMenu) { exoPackMenu.broadcastChanges() }