Fixed "Clear" and "Create Pattern" buttons not working correctly when using Grid Filter tabs, fixes #983

This commit is contained in:
raoulvdberge
2017-02-13 17:24:27 +01:00
parent fc8ae833f9
commit ef5dccee83
3 changed files with 9 additions and 8 deletions

View File

@@ -514,8 +514,8 @@ public class GuiGrid extends GuiBase implements IGridDisplay {
updateJEI();
}
boolean clickedClear = clickedButton == 0 && isOverClear(mouseX - guiLeft, mouseY - guiTop + getTabDelta());
boolean clickedCreatePattern = clickedButton == 0 && isOverCreatePattern(mouseX - guiLeft, mouseY - guiTop + getTabDelta());
boolean clickedClear = clickedButton == 0 && isOverClear(mouseX - guiLeft, mouseY - guiTop);
boolean clickedCreatePattern = clickedButton == 0 && isOverCreatePattern(mouseX - guiLeft, mouseY - guiTop);
if (clickedCreatePattern) {
BlockPos gridPos = ((NetworkNodeGrid) grid).getPos();