fixed component exception and removed client permission temporary
This commit is contained in:
@@ -305,21 +305,25 @@ namespace Barotrauma
|
||||
|
||||
public static WifiComponent GetWifiComponent(Item item)
|
||||
{
|
||||
if (item == null) return null;
|
||||
return item.GetComponent<WifiComponent>();
|
||||
}
|
||||
|
||||
public static LightComponent GetLightComponent(Item item)
|
||||
{
|
||||
if (item == null) return null;
|
||||
return item.GetComponent<LightComponent>();
|
||||
}
|
||||
|
||||
public static CustomInterface GetCustomInterface(Item item)
|
||||
{
|
||||
if (item == null) return null;
|
||||
return item.GetComponent<CustomInterface>();
|
||||
}
|
||||
|
||||
public static Fabricator GetFabricatorComponent(Item item)
|
||||
{
|
||||
if (item == null) return null;
|
||||
return item.GetComponent<Fabricator>();
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,6 @@ namespace Barotrauma
|
||||
UserData.RegisterType<Fabricator>();
|
||||
UserData.RegisterType<Pair<JobPrefab, int>>();
|
||||
UserData.RegisterType<ContentPackage>();
|
||||
UserData.RegisterType<ClientPermissions>();
|
||||
UserData.RegisterType<SubmarineInfo>();
|
||||
UserData.RegisterType<SubmarineBody>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user