Skip to content

Commit a5b0c06

Browse files
committed
Merge branch 'main' of github.com:battlecode/battlecode22 into main
2 parents 056dfdf + 65fc1c5 commit a5b0c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/src/main/battlecode/world/RobotControllerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ public void mineLead(MapLocation loc) throws GameActionException {
609609
this.gameWorld.setLead(loc, this.gameWorld.getLead(loc) - 1);
610610
this.gameWorld.getTeamInfo().addLead(getTeam(), 1);
611611
this.gameWorld.getMatchMaker().addAction(getID(), Action.MINE_LEAD, locationToInt(loc));
612-
this.gameWorld.getMatchMaker().addLeadDrop(robot.getLocation(), -1);
612+
this.gameWorld.getMatchMaker().addLeadDrop(loc, -1);
613613
}
614614

615615
private void assertCanMineGold(MapLocation loc) throws GameActionException {
@@ -639,7 +639,7 @@ public void mineGold(MapLocation loc) throws GameActionException {
639639
this.gameWorld.setGold(loc, this.gameWorld.getGold(loc) - 1);
640640
this.gameWorld.getTeamInfo().addGold(getTeam(), 1);
641641
this.gameWorld.getMatchMaker().addAction(getID(), Action.MINE_GOLD, locationToInt(loc));
642-
this.gameWorld.getMatchMaker().addGoldDrop(robot.getLocation(), -1);
642+
this.gameWorld.getMatchMaker().addGoldDrop(loc, -1);
643643
}
644644

645645
// *************************

0 commit comments

Comments
 (0)