Merge pull request #984 from Lazersmoke/patch-2

Added check for water when setting last recipe
This commit is contained in:
Lizbeth Rika committed 2015-05-18 14:40:19 +01:00
commit b5600c100f
1 file changed
+1 -1
@@ -153,7 +153,7 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory, I
}
public static void tryToSetLastRecipe(EntityPlayer player, IInventory inv, List<ItemStack> lastRecipe) {
if(lastRecipe == null || lastRecipe.isEmpty() || player.worldObj.isRemote)
if(lastRecipe == null || lastRecipe.isEmpty() || !hasWater || player.worldObj.isRemote)
return;
int index = 0;