Fix exception when opening WH projection menu (still have other issues that need to be worked out tho)

This commit is contained in:
blitzmann
2020-06-28 11:57:39 -04:00
parent 4a6a3fc6ea
commit b225093b1f

View File

@@ -188,7 +188,7 @@ class AddEnvironmentEffect(ContextMenuUnconditional):
continue
# Localized effects, currently, have a name like "(size) (type) Cloud"
# Until this inevitably changes, do a simple split
name_parts = beacon.name.split(" ")
name_parts = beacon.typeName.split(" ")
key = name_parts[1].strip()
subsubdata = subdata.groups.setdefault(key, Group())