From e79d26d7d74bf5fa5cd1c1a8de7eaba84f37fd2e Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Mon, 1 Jul 2013 22:29:43 -0500 Subject: [PATCH] Fixed NPE in BrewingStand --- src/main/java/net/minecraft/server/TileEntityBrewingStand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/TileEntityBrewingStand.java b/src/main/java/net/minecraft/server/TileEntityBrewingStand.java index f1883f3750..e98e29bf3a 100644 --- a/src/main/java/net/minecraft/server/TileEntityBrewingStand.java +++ b/src/main/java/net/minecraft/server/TileEntityBrewingStand.java @@ -121,8 +121,7 @@ public class TileEntityBrewingStand extends TileEntity implements IWorldInventor List list = Item.POTION.c(j); List list1 = Item.POTION.c(k); - // CraftBukkit - list != -> !list.equals - if ((j <= 0 || !list.equals(list1)) && (list == null || !list.equals(list1) && list1 != null) && j != k) { + if ((j <= 0 || list != list1) && (list == null || !list.equals(list1) && list1 != null) && j != k) { flag = true; break; }