We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e3b8c commit accbdf5Copy full SHA for accbdf5
engine/src/main/java/org/destinationsol/game/ship/SolShip.java
@@ -50,6 +50,7 @@
50
import org.destinationsol.game.ship.hulls.HullConfig;
51
52
import java.util.List;
53
+import java.util.Objects;
54
55
public class SolShip implements SolObject {
56
public static final float BASE_DUR_MOD = .3f;
@@ -190,7 +191,7 @@ private boolean tryCollectLoot(SolObject obj, SolGame game) {
190
191
boolean canAdd = c.canAdd(i);
192
if (canAdd) {
193
c.add(i);
- if (c == myItemContainer && myPilot.getMapHint().equals("Merc")) {
194
+ if (c == myItemContainer && Objects.equals(myPilot.getMapHint(), "Merc")) {
195
//insert equip code here, if it's something we want to do
196
}
197
0 commit comments