From 72b1b5550d882728d25a9cf06690f7ccecebb4f9 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Tue, 10 Dec 2024 06:52:24 +0300 Subject: [PATCH] =?UTF-8?q?AMD=20User=20=E2=80=94=20=D0=A1=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=D0=B4=D0=BD=D1=8F,=20=D0=B2=206:50=20=D0=9F=D1=80=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=BE=20=D0=B2=D1=8B=D0=BD=D0=B5=D1=81=D0=B8=20?= =?UTF-8?q?=D0=B2=20=D0=B2=D0=B5=D1=80=D1=85=20=D1=82=D0=B8=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=98=D1=82=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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() }