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)
|
public static WifiComponent GetWifiComponent(Item item)
|
||||||
{
|
{
|
||||||
|
if (item == null) return null;
|
||||||
return item.GetComponent<WifiComponent>();
|
return item.GetComponent<WifiComponent>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LightComponent GetLightComponent(Item item)
|
public static LightComponent GetLightComponent(Item item)
|
||||||
{
|
{
|
||||||
|
if (item == null) return null;
|
||||||
return item.GetComponent<LightComponent>();
|
return item.GetComponent<LightComponent>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CustomInterface GetCustomInterface(Item item)
|
public static CustomInterface GetCustomInterface(Item item)
|
||||||
{
|
{
|
||||||
|
if (item == null) return null;
|
||||||
return item.GetComponent<CustomInterface>();
|
return item.GetComponent<CustomInterface>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Fabricator GetFabricatorComponent(Item item)
|
public static Fabricator GetFabricatorComponent(Item item)
|
||||||
{
|
{
|
||||||
|
if (item == null) return null;
|
||||||
return item.GetComponent<Fabricator>();
|
return item.GetComponent<Fabricator>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,6 @@ namespace Barotrauma
|
|||||||
UserData.RegisterType<Fabricator>();
|
UserData.RegisterType<Fabricator>();
|
||||||
UserData.RegisterType<Pair<JobPrefab, int>>();
|
UserData.RegisterType<Pair<JobPrefab, int>>();
|
||||||
UserData.RegisterType<ContentPackage>();
|
UserData.RegisterType<ContentPackage>();
|
||||||
UserData.RegisterType<ClientPermissions>();
|
|
||||||
UserData.RegisterType<SubmarineInfo>();
|
UserData.RegisterType<SubmarineInfo>();
|
||||||
UserData.RegisterType<SubmarineBody>();
|
UserData.RegisterType<SubmarineBody>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user