@@ -115,7 +115,7 @@ public void run() {
115115 if (now instanceof BrewingStand ) {
116116 BrewingStand stand = (BrewingStand ) now ;
117117 if (brewTime == DISTILLTIME ) { // only check at the beginning (and end) for distillables
118- if (!isCustomAndDistill (stand .getInventory ())) {
118+ if (!isCustom (stand .getInventory (), true )) {
119119 this .cancel ();
120120 trackedBrewers .remove (brewery );
121121 P .p .debugLog ("nothing to distill" );
@@ -150,7 +150,7 @@ public void run() {
150150 }.runTaskTimer (P .p , 2L , 1L ).getTaskId ());
151151 }
152152
153- private boolean isCustomAndDistill (BrewerInventory brewer ) {
153+ private boolean isCustom (BrewerInventory brewer , boolean distill ) {
154154 ItemStack item = brewer .getItem (3 ); // ingredient
155155 if (item == null || Material .GLOWSTONE_DUST != item .getType ()) return false ; // need dust in the top slot.
156156 for (int slot = 0 ; slot < 3 ; slot ++) {
@@ -160,7 +160,7 @@ private boolean isCustomAndDistill(BrewerInventory brewer) {
160160 if (item .hasItemMeta ()) {
161161 int uid = Brew .getUID (item );
162162 Brew pot = Brew .potions .get (uid );
163- if (pot != null && pot .canDistill ()) { // need at least one distillable potion.
163+ if (pot != null && (! distill || pot .canDistill () )) { // need at least one distillable potion.
164164 return true ;
165165 }
166166 }
@@ -172,6 +172,12 @@ private boolean isCustomAndDistill(BrewerInventory brewer) {
172172
173173 @ EventHandler (priority = EventPriority .HIGH , ignoreCancelled = true )
174174 public void onBrew (BrewEvent event ) {
175+ if (P .use1_9 ) {
176+ if (isCustom (event .getContents (), false )) {
177+ event .setCancelled (true );
178+ }
179+ return ;
180+ }
175181 if (runDistill (event .getContents ())) {
176182 event .setCancelled (true );
177183 }
0 commit comments