Changed Map to ConcurrentHashMap
import java.util.List;
import java.util.Map;
import java.util.Optional;
+import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
import org.terasology.assets.ResourceUrn;
@In
private AssetManager assetManager;
- private Map<EntityRef, Interpreter> entityInterpreters = Maps.newHashMap();
+ private ConcurrentHashMap<EntityRef, Interpreter> entityInterpreters = new ConcurrentHashMap<EntityRef, Interpreter>();
private List<BehaviorTree> trees = Lists.newArrayList();
@Override
