Oops accidentally broke this check

This commit is contained in:
Evil Factory
2026-02-01 09:18:11 -03:00
parent 9f1c3fa823
commit a546615f69

View File

@@ -66,7 +66,7 @@ namespace Barotrauma
return false;
}
if (!CanBeRegistered(typeName))
if (!CanBeRegistered(typeName) && !LuaUserData.IsRegistered(typeName))
{
return false;
}