Inventory Grid Plugin: Make it so the grid/background actually works

The way it was being done before was the correct way, this commit https://github.com/runelite-extended/runelite/commit/d6285235cb836d90c09dae22e686a113bef88c4d actually broke it. So this reverts it back to the original method.
This commit is contained in:
Journey
2019-07-10 20:57:12 -05:00
committed by GitHub
parent e7b15d9cfd
commit ccb1725981
@@ -69,7 +69,7 @@ class InventoryGridOverlay extends Overlay
final Widget if1DraggingWidget = client.getIf1DraggedWidget();
final Widget inventoryWidget = client.getWidget(WidgetInfo.INVENTORY);
if (if1DraggingWidget == null || if1DraggingWidget.equals(inventoryWidget)
if (if1DraggingWidget == null || if1DraggingWidget != inventoryWidget
|| client.getItemPressedDuration() < plugin.getDragDelay() / Constants.CLIENT_TICK_LENGTH)
{
return null;