removed GetWorldFromUnity alladded no-warning checks since nothing else does that.

(this causes a bunch of HARMLESS WorldObjectsToUnityObjects errors but idc)
This commit is contained in:
JohnCorby 2021-12-02 00:42:24 -08:00
parent 914a05916d
commit 9cca7273f6

View File

@ -36,11 +36,6 @@ namespace QSB.WorldSync
public static IWorldObject GetWorldFromUnity(MonoBehaviour unityObject)
{
if (!WorldObjectManager.AllAdded)
{
return default;
}
if (unityObject == null)
{
DebugLog.ToConsole($"Error - Trying to run GetWorldFromUnity with a null unity object! TUnityObject:NULL", MessageType.Error);
@ -71,11 +66,6 @@ namespace QSB.WorldSync
public static TWorldObject GetWorldFromUnity<TWorldObject>(MonoBehaviour unityObject)
where TWorldObject : IWorldObject
{
if (!WorldObjectManager.AllAdded)
{
return default;
}
if (unityObject == null)
{
DebugLog.ToConsole($"Error - Trying to run GetWorldFromUnity with a null unity object! TWorldObject:{typeof(TWorldObject).Name}, TUnityObject:NULL", MessageType.Error);