Skip to content

Commit

Permalink
SpongeEco: Fix ClassCastException
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Dec 1, 2016
1 parent 89612b7 commit 9ae19e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class SpongeProviders
{
public static final EconomyProvider ECONOMY = mineCity -> Sponge.getPluginManager().getPlugin("minecityecosponge")
.map(PluginContainer::getInstance).map(SpongeEconomy.class::cast)
.flatMap(PluginContainer::getInstance).map(SpongeEconomy.class::cast)
.orElseThrow(() -> new IllegalStateException("MineCity Eco Sponge is not loaded!"));

private SpongeProviders(){}
Expand Down

0 comments on commit 9ae19e9

Please sign in to comment.