Testing illustrates that the brew event is being called for invalid brews any more, which brewery was leveraging. For distillation, a new way of approaching things is now required.

This commit is contained in:
Daniel Boston 2016-04-19 07:59:18 -04:00
parent bef0dd5fff
commit 950d36823d

View File

@ -20,8 +20,13 @@ import com.dre.brewery.integration.LogBlockBarrel;
public class InventoryListener implements Listener {
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = false)
public void onBrew(BrewEvent event) {
if (event.isCancelled()) {
P.p.log("Got Cancelled Brew Event");
} else {
P.p.log("Got Brew Event");
}
int slot = 0;
BrewerInventory inv = event.getContents();
ItemStack item;