File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
shared/src/main/java/eu/darkbot/shared/utils Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ dependencies {
2121 api(project(" :darkbot-shared" ))
2222}
2323
24- val apiVersion = " 0.9.7 "
24+ val apiVersion = " 0.9.8 "
2525
2626allprojects {
2727 group = " eu.darkbot"
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ boolean canUse(SafetyInfo safety) {
8787 if (safety .getType () == SafetyInfo .Type .CBS ) {
8888 return safety .getEntity ()
8989 .map (c -> c instanceof BattleStation .Hull ? (BattleStation .Hull ) c : null )
90- .map (cbs -> cbs .getEntityInfo ().isEnemy () || (cbs .getHullId () == 0 && safety .getCbsMode () == SafetyInfo .CbsMode .ALLY ))
90+ .map (cbs -> !( cbs .getEntityInfo ().isEnemy () || (cbs .getHullId () == 0 && safety .getCbsMode () == SafetyInfo .CbsMode .ALLY ) ))
9191 .orElse (false );
9292 }
9393 return safety .getRunMode ().ordinal () <= this .ordinal ();
You can’t perform that action at this time.
0 commit comments