@rbxts/replecs 0.1.0-alpha7 → 0.1.0-alpha8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1136,12 +1136,14 @@ function masking_controller.allocate_component_change(
1136
1136
  local storage = masking:get_component_storage_group(entity, component, COMPONENT_TYPES.component)
1137
1137
  local changes = get_or_set_changes(storage, entity)
1138
1138
  changes.component[component] = value
1139
+ changes.removed[component] = nil
1139
1140
  end
1140
1141
 
1141
1142
  function masking_controller.allocate_tag_addition(masking: MaskingInternal, entity: Entity, tag: Entity)
1142
1143
  local storage = masking:get_component_storage_group(entity, tag, COMPONENT_TYPES.tag)
1143
1144
  local changes = get_or_set_changes(storage, entity)
1144
1145
  changes.tagged[tag] = true
1146
+ changes.removed[tag] = nil
1145
1147
  end
1146
1148
 
1147
1149
  function masking_controller.allocate_pair_addition(
@@ -1164,9 +1166,7 @@ function masking_controller.allocate_component_removal(masking: MaskingInternal,
1164
1166
  local storage = masking:get_component_storage_group(entity, component, COMPONENT_TYPES.component)
1165
1167
  local changes = get_or_set_changes(storage, entity)
1166
1168
 
1167
- if changes.component[component] then
1168
- changes.component[component] = nil
1169
- end
1169
+ changes.component[component] = nil
1170
1170
  changes.removed[component] = true
1171
1171
  end
1172
1172
 
@@ -1174,9 +1174,7 @@ function masking_controller.allocate_tag_removal(masking: MaskingInternal, entit
1174
1174
  local storage = masking:get_component_storage_group(entity, tag, COMPONENT_TYPES.tag)
1175
1175
  local changes = get_or_set_changes(storage, entity)
1176
1176
 
1177
- if changes.tagged[tag] then
1178
- changes.tagged[tag] = nil
1179
- end
1177
+ changes.tagged[tag] = nil
1180
1178
  changes.removed[tag] = true
1181
1179
  end
1182
1180
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/replecs",
3
- "version": "0.1.0-alpha7",
3
+ "version": "0.1.0-alpha8",
4
4
  "description": "Replication library for Jecs",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",