refactoring

This commit is contained in:
2025-05-01 23:34:31 +02:00
parent c41cdd57c4
commit f932ae1bcd
4 changed files with 40 additions and 35 deletions

View File

@@ -61,7 +61,7 @@ public class Chunk {
}
public void SetElementActive(Element e, bool active) {
if (e.GetType() == typeof(Element) && active) return;
if (e.GetType() == typeof(Element)) return;
if (active) AddToChunk(e);
else RemoveFromChunk(e);