crowdsourcing: don't include menuoptionclicked event in movementdata
Serializing the event no longer works as expected, but is also not a good idea in general
This commit is contained in:
@@ -69,7 +69,9 @@ public class CrowdsourcingMovement
|
||||
int distance = nextPoint.distanceTo(lastPoint);
|
||||
if (distance > 2 || nextIsInInstance != lastIsInInstance)
|
||||
{
|
||||
MovementData data = new MovementData(lastPoint, nextPoint, lastIsInInstance, nextIsInInstance, ticksStill, lastClick);
|
||||
MovementData data = new MovementData(lastPoint, nextPoint, lastIsInInstance, nextIsInInstance,
|
||||
ticksStill, lastClick.getMenuAction(), lastClick.getId(), lastClick.getMenuOption(),
|
||||
lastClick.getMenuTarget(), lastClick.getParam0(), lastClick.getParam1());
|
||||
manager.storeEvent(data);
|
||||
}
|
||||
if (distance > 0)
|
||||
|
||||
@@ -27,8 +27,8 @@ package net.runelite.client.plugins.crowdsourcing.movement;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import net.runelite.api.MenuAction;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.api.events.MenuOptionClicked;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@@ -39,5 +39,10 @@ public class MovementData
|
||||
private final boolean fromInstance;
|
||||
private final boolean toInstance;
|
||||
private final int ticks;
|
||||
private MenuOptionClicked lastClick;
|
||||
private MenuAction menuAction;
|
||||
private int menuIdentifier;
|
||||
private String menuOption;
|
||||
private String menuTarget;
|
||||
private int param0;
|
||||
private int param1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user