Prevent accidental Grid scrollbar click after clicking JEI recipe transfer button. Fixes #1821

This commit is contained in:
raoulvdberge
2018-06-19 19:34:29 +02:00
parent 5572c3ae09
commit 62aaacb57a

View File

@@ -31,9 +31,9 @@ public class RecipeTransferHandlerGrid implements IRecipeTransferHandler {
@Override @Override
public IRecipeTransferError transferRecipe(Container container, IRecipeLayout recipeLayout, EntityPlayer player, boolean maxTransfer, boolean doTransfer) { public IRecipeTransferError transferRecipe(Container container, IRecipeLayout recipeLayout, EntityPlayer player, boolean maxTransfer, boolean doTransfer) {
LAST_TRANSFER = System.currentTimeMillis();
if (doTransfer) { if (doTransfer) {
LAST_TRANSFER = System.currentTimeMillis();
IGrid grid = ((ContainerGrid) container).getGrid(); IGrid grid = ((ContainerGrid) container).getGrid();
if (grid.getType() == GridType.PATTERN && ((NetworkNodeGrid) grid).isProcessingPattern()) { if (grid.getType() == GridType.PATTERN && ((NetworkNodeGrid) grid).isProcessingPattern()) {