mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 06:38:56 +00: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:
@@ -20,8 +20,13 @@ import com.dre.brewery.integration.LogBlockBarrel;
|
|||||||
|
|
||||||
public class InventoryListener implements Listener {
|
public class InventoryListener implements Listener {
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = false)
|
||||||
public void onBrew(BrewEvent event) {
|
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;
|
int slot = 0;
|
||||||
BrewerInventory inv = event.getContents();
|
BrewerInventory inv = event.getContents();
|
||||||
ItemStack item;
|
ItemStack item;
|
||||||
|
|||||||
Reference in New Issue
Block a user