Fixed NPE in BrewingStand

This commit is contained in:
Wesley Wolfe 2013-07-01 22:29:43 -05:00
parent 6c09066e22
commit e79d26d7d7

View File

@ -121,8 +121,7 @@ public class TileEntityBrewingStand extends TileEntity implements IWorldInventor
List list = Item.POTION.c(j); List list = Item.POTION.c(j);
List list1 = Item.POTION.c(k); List list1 = Item.POTION.c(k);
// CraftBukkit - list != -> !list.equals if ((j <= 0 || list != list1) && (list == null || !list.equals(list1) && list1 != null) && j != k) {
if ((j <= 0 || !list.equals(list1)) && (list == null || !list.equals(list1) && list1 != null) && j != k) {
flag = true; flag = true;
break; break;
} }