Prevent accidental Grid scrollbar click after clicking JEI recipe transfer button. Fixes #1821
This commit is contained in:
@@ -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) {
|
||||||
|
if (doTransfer) {
|
||||||
LAST_TRANSFER = System.currentTimeMillis();
|
LAST_TRANSFER = System.currentTimeMillis();
|
||||||
|
|
||||||
if (doTransfer) {
|
|
||||||
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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user