diff --git a/core/src/com/me/common/ecs/Entity.java b/core/src/com/me/common/ecs/Entity.java index dd79c83..5345ffd 100644 --- a/core/src/com/me/common/ecs/Entity.java +++ b/core/src/com/me/common/ecs/Entity.java @@ -39,19 +39,25 @@ public final class Entity { } public void activate() { - active = true; - refresh(); + if (!active) { + active = true; + refresh(); + } } public void deactivate() { - active = false; - refresh(); + if (active) { + active = false; + refresh(); + } } public void remove() { - removed = true; - active = false; - refresh(); + if (!removed) { + removed = true; + active = false; + refresh(); + } } public Engine getEngine() {