mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-25 12:05:16 +01:00
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:
parent
bef0dd5fff
commit
950d36823d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user