Allow sponges to be smelted faster but not to multiply rewards.

This commit is contained in:
Brianna 2020-01-24 13:59:20 -05:00
parent a60c0256d1
commit 787a1a250e
2 changed files with 5 additions and 1 deletions

View File

@ -91,6 +91,10 @@ public class Furnace {
FurnaceInventory i = (FurnaceInventory) ((InventoryHolder) block.getState()).getInventory();
if (e.getSource().getType().name().contains("SPONGE"))
return;
int num = Integer.parseInt(reward);
double rand = Math.random() * 100;
if (rand >= num

View File

@ -29,7 +29,7 @@ public class FurnaceListeners implements Listener {
}
Furnace furnace = plugin.getFurnaceManager().getFurnace(block.getLocation());
if (furnace != null && !event.getSource().getType().name().contains("SPONGE"))
if (furnace != null)
furnace.plus(event);
}