Fixed "Clear" and "Create Pattern" buttons not working correctly when using Grid Filter tabs, fixes #983
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
"model": "cube",
|
||||
"textures": {
|
||||
"particle": "refinedstorage:blocks/side",
|
||||
"north": "refinedstorage:blocks/machine_casing",
|
||||
"east": "refinedstorage:blocks/grid_left",
|
||||
"south": "refinedstorage:blocks/grid_back",
|
||||
"west": "refinedstorage:blocks/grid_right",
|
||||
"up": "refinedstorage:blocks/grid_top",
|
||||
"down": "refinedstorage:blocks/bottom"
|
||||
"north": "refinedstorage:blocks/interface_disconnected",
|
||||
"east": "refinedstorage:blocks/side",
|
||||
"south": "refinedstorage:blocks/side",
|
||||
"west": "refinedstorage:blocks/side",
|
||||
"up": "refinedstorage:blocks/side",
|
||||
"down": "refinedstorage:blocks/side"
|
||||
}
|
||||
},
|
||||
"variants": {
|
||||
|
||||
Reference in New Issue
Block a user