mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
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:
parent
914a05916d
commit
9cca7273f6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user