@@ -39,7 +39,7 @@ public void onPlayerInteract(PlayerInteractEvent event) {
3939 Material materialInHand = event .getMaterial ();
4040 ItemStack item = event .getItem ();
4141
42- if (materialInHand == null ) {
42+ if (materialInHand == null || materialInHand == Material . BUCKET ) {
4343 return ;
4444
4545 } else if (materialInHand == Material .WATCH ) {
@@ -64,22 +64,16 @@ public void onPlayerInteract(PlayerInteractEvent event) {
6464 }
6565 return ;
6666
67- // reset cauldron when refilling to prevent
68- // unlimited source of potions
67+ // reset cauldron when refilling to prevent unlimited source of potions
6968 } else if (materialInHand == Material .WATER_BUCKET ) {
70- if (BCauldron .getFillLevel (clickedBlock ) != 0 && BCauldron .getFillLevel (clickedBlock ) < 2 ) {
71- // will only remove when existing
72- BCauldron .remove (clickedBlock );
69+ if (!P .use1_9 ) {
70+ if (BCauldron .getFillLevel (clickedBlock ) != 0 && BCauldron .getFillLevel (clickedBlock ) < 2 ) {
71+ // will only remove when existing
72+ BCauldron .remove (clickedBlock );
73+ }
7374 }
7475 return ;
7576
76- // Its possible to empty a Cauldron with a Bucket in 1.9
77- } else if (P .use1_9 && materialInHand == Material .BUCKET ) {
78- if (BCauldron .getFillLevel (clickedBlock ) == 2 ) {
79- // will only remove when existing
80- BCauldron .remove (clickedBlock );
81- }
82- return ;
8377 }
8478
8579 // Check if fire alive below cauldron when adding ingredients
0 commit comments