🐛 fixed never more than 10 fields bug

This commit is contained in:
2025-11-07 18:18:05 +01:00
parent 1d7f656ec4
commit 6a2355cf97
6 changed files with 36 additions and 89 deletions
@@ -51,11 +51,9 @@ public partial class FieldService : Node
{
if (field.fields.TryGetValue(fieldPosition, out FieldBehaviour2D? fieldInstance))
{
GD.Print("Getting field...");
return fieldInstance;
}
}
GD.Print($"No field found for key: {key} and position: {fieldPosition} ");
return null;
}