From 0684b90584a88c6069801719906718e0fcd25f23 Mon Sep 17 00:00:00 2001 From: DCFApixels <99481254+DCFApixels@users.noreply.github.com> Date: Sat, 15 Mar 2025 15:09:11 +0800 Subject: [PATCH] fix --- src/AutoInjectSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoInjectSystem.cs b/src/AutoInjectSystem.cs index 0cf3b1d..2115a38 100644 --- a/src/AutoInjectSystem.cs +++ b/src/AutoInjectSystem.cs @@ -69,7 +69,7 @@ namespace DCFApixels.DragonECS #if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS if (!isAgressiveInjection && o.CanWrite == false) { Throw.PropertyIsCantWrite(o); } #endif - return o.CanWrite == false; + return o.CanWrite; }) .Select(o => new InjectedProperty(o)));