YuRaNnNzZZ — Сегодня, в 11:20
слоты брони сбрасываются на зарядку
This commit is contained in:
parent
4e17c00099
commit
2e94245d7c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user