Skip to content

Commit

Permalink
Support more general BaseEntitySystem rather than only EntitySystem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Namek committed Dec 18, 2015
1 parent ee80e36 commit 9a5a36b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import net.namekdev.entity_tracker.utils.serialization.NetworkSerialization;

import com.artemis.Aspect;
import com.artemis.BaseEntitySystem;
import com.artemis.BaseSystem;
import com.artemis.Component;
import com.artemis.ComponentManager;
Expand All @@ -26,7 +27,6 @@
import com.artemis.Entity;
import com.artemis.EntitySubscription;
import com.artemis.EntitySubscription.SubscriptionListener;
import com.artemis.EntitySystem;
import com.artemis.Manager;
import com.artemis.utils.Bag;
import com.artemis.utils.ImmutableBag;
Expand Down Expand Up @@ -99,8 +99,8 @@ private void find42UnicornManagers() {
BitSet actives = null;
EntitySubscription subscription = null;

if (system instanceof EntitySystem) {
EntitySystem entitySystem = (EntitySystem) system;
if (system instanceof BaseEntitySystem) {
BaseEntitySystem entitySystem = (BaseEntitySystem) system;

subscription = entitySystem.getSubscription();
aspect = subscription.getAspect();
Expand Down

0 comments on commit 9a5a36b

Please sign in to comment.