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()
|
slotsChargeFlag.clear()
|
||||||
slotChargeToDefault()
|
|
||||||
|
|
||||||
val regularSlotFilters = tag.getStringList("regularSlotFilters")
|
val regularSlotFilters = tag.getStringList("regularSlotFilters")
|
||||||
|
|
||||||
@ -996,9 +995,13 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
|
|||||||
this.regularSlotFilters[i].value = ForgeRegistries.ITEMS.getValue(ResourceLocation.tryParse(path) ?: continue) ?: Items.AIR
|
this.regularSlotFilters[i].value = ForgeRegistries.ITEMS.getValue(ResourceLocation.tryParse(path) ?: continue) ?: Items.AIR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ("slotsChargeFlag" in tag) {
|
||||||
for (v in tag.getIntList("slotsChargeFlag")) {
|
for (v in tag.getIntList("slotsChargeFlag")) {
|
||||||
this.slotsChargeFlag.add(v.asInt)
|
this.slotsChargeFlag.add(v.asInt)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
slotChargeToDefault()
|
||||||
|
}
|
||||||
|
|
||||||
// iterations
|
// iterations
|
||||||
deathLog.clear()
|
deathLog.clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user