fixed elements not simulating

updated to godot 4.3
This commit is contained in:
2024-12-18 20:48:01 +01:00
parent 383e1343ef
commit 8ebaa9e987
5 changed files with 3 additions and 8 deletions

View File

@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using FOU.Scripts.Elements;
using Godot;
@@ -79,9 +78,6 @@ public class Chunk {
}
public void SetElementActive(Element e, bool active) {
if (e.Active == active) return;
GD.Print($"setting {e} to {active}");
if (active && e.GetType() != typeof(Element))
activeElements.Add(e);
else