Skip to content

Commit

Permalink
remove unnecessary catch
Browse files Browse the repository at this point in the history
He swallows the error since he's the one throwing it. Just a fancier way
of "returning" from the method really.
  • Loading branch information
RoboMWM committed Sep 27, 2018
1 parent 463165e commit 50a8372
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/me/ryanhamshire/PopulationDensity/WorldEventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ public void onChunkLoad(ChunkLoadEvent chunkLoadEvent)
{
PopulationDensity.instance.dataStore.AddRegionPost(region);
}
catch (ChunkLoadException e) //this should never happen, because the chunk is loaded (why else would onChunkLoad() be invoked?)
//Then why are you eating it? - RoboMWM
{
PopulationDensity.instance.getLogger().info("Was unable to build a post. Do not fret as we'll try again when the chunk is loaded again - but, if you wish to report this, please include the ''entire'' log, not just this error.");
e.printStackTrace();
}
catch (ChunkLoadException ignored){} //this should never happen, because the chunk is loaded (why else would onChunkLoad() be invoked?)
}
}

Expand Down

0 comments on commit 50a8372

Please sign in to comment.