Skip to content

Commit

Permalink
Fixed string comparison bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveyBiggers committed Mar 10, 2017
1 parent b90f3ed commit 38bb9e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void getReward(MissionInit missionInit, MultidimensionalReward reward)
String mobName = et.value();
for (Entity e : trappedEntities)
{
if (e.getName() == mobName)
if (e.getName().equals(mobName))
{
// Potential match... check other options.
if (!mob.isGlobal())
Expand Down

0 comments on commit 38bb9e4

Please sign in to comment.