We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e93646f commit 3feab27Copy full SHA for 3feab27
src/main/java/bwem/map/Map.java
@@ -142,15 +142,7 @@ public void onUnitDestroyed(Unit u) {
142
if (u.getType().isMineralField()) {
143
onMineralDestroyed(u);
144
} else {
145
- try {
146
- onStaticBuildingDestroyed(u);
147
- } catch (Exception ex) {
148
- // TODO: Handle this exception appropriately.
149
- /**
150
- * An exception WILL be thrown if the unit is not in the "Map.StaticBuildings" list. Just
151
- * ignore the exception.
152
- */
153
- }
+ onStaticBuildingDestroyed(u);
154
}
155
156
@@ -187,7 +179,6 @@ private void onStaticBuildingDestroyed(Unit u) {
187
179
return;
188
180
189
181
190
- throw new IllegalArgumentException("unit is not a StaticBuilding");
191
182
192
183
193
184
public List<Area> getAreas() {
0 commit comments