From 92c1c303dba117f1b6987031e0b77bdc6b43ecd3 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 31 Aug 2022 14:36:15 +0700 Subject: [PATCH] Items in Exosuit now tick --- .../mc/otm/capability/MatteryPlayerCapability.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt index 583bfbfaa..bff921bea 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt @@ -603,6 +603,14 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, IMatteryEn if (hasExoSuit && ply.containerMenu != exoSuitMenu) { exoSuitMenu.broadcastChanges() } + + if (hasExoSuit) { + for ((i, stack) in exoSuitContainer.withIndex()) { + if (!stack.isEmpty) { + stack.inventoryTick(ply.level, ply, i + 41, false) + } + } + } } override fun extractEnergyOuter(howMuch: ImpreciseFraction, simulate: Boolean): ImpreciseFraction {