BundleShaderFix: список исправленных материалов очищается при выходе из мира

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-10-10 21:36:15 +03:00
co-authored by Claude Opus 5.5
parent 6028252cd6
commit d8eb78c8b3
4 changed files with 8 additions and 0 deletions
+7
View File
@@ -17,6 +17,13 @@ namespace NecromancerTome
static Shader _std;
static readonly HashSet<int> _done = new HashSet<int>();
/// <summary>Выход из мира: бандлы при следующей загрузке дадут новые материалы - старые номера не нужны
/// (вызывает RemainsDecay, когда мира нет).</summary>
public static void Forget()
{
_done.Clear();
}
public static void Fix(Transform _root)
{
if (_root == null)
+1
View File
@@ -40,6 +40,7 @@ namespace NecromancerTome
if (world == null)
{
_since.Clear();
BundleShaderFix.Forget();
return;
}
if (Time.time < _next || !SingletonMonoBehaviour<ConnectionManager>.Instance.IsServer)
Binary file not shown.
Binary file not shown.