Items in Exosuit now tick

This commit is contained in:
DBotThePony 2022-08-31 14:36:15 +07:00
parent 6beab09cb6
commit 92c1c303db
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -603,6 +603,14 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, IMatteryEn
if (hasExoSuit && ply.containerMenu != exoSuitMenu) { if (hasExoSuit && ply.containerMenu != exoSuitMenu) {
exoSuitMenu.broadcastChanges() 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 { override fun extractEnergyOuter(howMuch: ImpreciseFraction, simulate: Boolean): ImpreciseFraction {