Fix missing type register

This commit is contained in:
Evil Factory
2026-03-27 21:40:44 -03:00
parent c1fdedf955
commit 57daa3ccb7

View File

@@ -42,6 +42,8 @@ public class DefaultLuaRegistrar : IDefaultLuaRegistrar
_userDataService.RegisterType("Barotrauma.Range`1");
_userDataService.RegisterType("Barotrauma.ItemPrefab");
_userDataService.RegisterType("Barotrauma.InputType");
List<Assembly> assembliesToScan = [typeof(DefaultLuaRegistrar).Assembly, typeof(Identifier).Assembly, typeof(Microsoft.Xna.Framework.Vector2).Assembly];
foreach (var type in assembliesToScan.SelectMany(a => a.GetTypes()))