Skip to content

Commit 2d61c32

Browse files
committed
remove workaround for LuaControlBehavior.type that was fixed in source
1 parent ee145c5 commit 2d61c32

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

json_parser/parser.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ function parseType(type: FactorioType | undefined, indent: string, parent?: Fact
150150
return 'ItemPrototypeFilter | TilePrototypeFilter | EntityPrototypeFilter | FluidPrototypeFilter | RecipePrototypeFilter | DecorativePrototypeFilter | AchievementPrototypeFilter | EquipmentPrototypeFilter | TechnologyPrototypeFilter';
151151
}
152152

153-
// workaround for a LuaControlBehavior.type
154-
// 1.1.108 hoisted the `type` subkey from `control_behavior` to its own root define type, but it is still referenced in this type
155-
// seems like a bug in the spec docs. Check back on this in future versions.
156-
// https://forums.factorio.com/viewtopic.php?f=233&t=113710
157-
if(type === 'defines.control_behavior.type') {
158-
return 'defines.type';
159-
}
160-
161153
return type;
162154
}
163155
else {

0 commit comments

Comments
 (0)