Items in Exosuit now tick
This commit is contained in:
parent
6beab09cb6
commit
92c1c303db
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user