mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-12 13:13:32 +00:00
remove patch logs
This commit is contained in:
parent
576c14b6c6
commit
7c4372dca7
@ -84,10 +84,10 @@ namespace QSB.Patches
|
|||||||
public static void DoPatchType(QSBPatchTypes type)
|
public static void DoPatchType(QSBPatchTypes type)
|
||||||
{
|
{
|
||||||
OnPatchType?.SafeInvoke(type);
|
OnPatchType?.SafeInvoke(type);
|
||||||
DebugLog.DebugWrite($"Patch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
//DebugLog.DebugWrite($"Patch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
||||||
foreach (var patch in _patchList.Where(x => x.Type == type))
|
foreach (var patch in _patchList.Where(x => x.Type == type))
|
||||||
{
|
{
|
||||||
DebugLog.DebugWrite($" - Patching in {patch.GetType().Name}", MessageType.Info);
|
//DebugLog.DebugWrite($" - Patching in {patch.GetType().Name}", MessageType.Info);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
patch.DoPatches(TypeToInstance[type]);
|
patch.DoPatches(TypeToInstance[type]);
|
||||||
@ -102,7 +102,7 @@ namespace QSB.Patches
|
|||||||
public static void DoUnpatchType(QSBPatchTypes type)
|
public static void DoUnpatchType(QSBPatchTypes type)
|
||||||
{
|
{
|
||||||
OnUnpatchType?.SafeInvoke(type);
|
OnUnpatchType?.SafeInvoke(type);
|
||||||
DebugLog.DebugWrite($"Unpatch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
//DebugLog.DebugWrite($"Unpatch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
||||||
TypeToInstance[type].UnpatchSelf();
|
TypeToInstance[type].UnpatchSelf();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user