mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2024-11-30 22:03:22 +01:00
Allow sponges to be smelted faster but not to multiply rewards.
This commit is contained in:
parent
a60c0256d1
commit
787a1a250e
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user