YuRaNnNzZZ — Сегодня, в 11:20

слоты брони сбрасываются
на зарядку
This commit is contained in:
DBotThePony 2023-08-21 11:25:14 +07:00
parent 4e17c00099
commit 2e94245d7c
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -986,7 +986,6 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
}
slotsChargeFlag.clear()
slotChargeToDefault()
val regularSlotFilters = tag.getStringList("regularSlotFilters")
@ -996,8 +995,12 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
this.regularSlotFilters[i].value = ForgeRegistries.ITEMS.getValue(ResourceLocation.tryParse(path) ?: continue) ?: Items.AIR
}
for (v in tag.getIntList("slotsChargeFlag")) {
this.slotsChargeFlag.add(v.asInt)
if ("slotsChargeFlag" in tag) {
for (v in tag.getIntList("slotsChargeFlag")) {
this.slotsChargeFlag.add(v.asInt)
}
} else {
slotChargeToDefault()
}
// iterations