mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-06-30 11:04:54 +02: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 {
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user