Made the PulseManager capable of running multiple pulses simultaneously, in different slots (this makes it function a bit more like an entity queue, though not quite)

Fixed the dupe in the ectofuntus by demoting the action pulses for grinding bones from world pulses to individual pulses, and correcting a bit of the logic
Added function to remove multiple attributes at once to the ContentAPI
This commit is contained in:
Ceikry
2022-09-06 23:37:08 +00:00
committed by Ryan
parent 4ecdbbac7e
commit 785f72215f
45 changed files with 188 additions and 128 deletions
+5 -1
View File
@@ -788,7 +788,11 @@ fun <T> setAttribute(entity: Entity, attribute: String, value: T) {
}
fun removeAttribute(entity: Entity, attribute: String) {
entity.removeAttribute(attribute)
entity.removeAttribute(attribute.replace("/save:",""))
}
fun removeAttributes(entity: Entity, vararg attributes: String) {
for (attribute in attributes) removeAttribute(entity, attribute)
}
/**