Skip to content

Commit

Permalink
fix: formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoinkwiz committed Nov 24, 2024
1 parent 556fbea commit fd75cd8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/questhelper/QuestHelperPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public void onConfigChanged(ConfigChanged event)
return;
}

if (event.getKey().equals("showRuneliteObjects") && client.getGameState() == GameState.LOGGED_IN)
if (event.getKey().equals("showRuneliteObjects") && client.getGameState() == GameState.LOGGED_IN)
{
clientThread.invokeLater(() -> {
if (config.showRuneliteObjects())
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/questhelper/questimport/JsonToQuest.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public JsonToQuest(ItemManager itemManager)
{
this.itemManager = itemManager;
}

public JsonQuestHelper importQuestFromJson(Gson gson, String jsonContent)
{
JsonQuestHelper newHelper = new JsonQuestHelper();
Expand Down Expand Up @@ -182,7 +183,7 @@ private Requirement[] getRequirements(List<String> reqs, Map<String, Requirement
{
if (reqs == null) return null;
Requirement[] requirements = new Requirement[reqs.size()];
for (int i=0; i<reqs.size(); i++)
for (int i = 0; i < reqs.size(); i++)
{
String req = reqs.get(i);
requirements[i] = requirementMap.get(req);
Expand All @@ -206,7 +207,7 @@ private LogicType getLogicType(String logicType)

switch (logicType.toLowerCase())
{
case "or":
case "or":
return LogicType.OR;
case "nor":
return LogicType.NOR;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/questhelper/questimport/QuestData.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import java.util.List;

@Data
public class QuestData {
public class QuestData
{
private List<RequirementData> requirements;
private List<StepData> steps;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import java.util.Map;

@Data
public class RequirementData {
public class RequirementData
{
private String id;
private String type;
private Map<String, Object> parameters;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/questhelper/questimport/StepData.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
import java.util.Map;

@Data
public class StepData {
public class StepData
{
private String type;
private boolean isDefault;
private Map<String, Object> parameters;
private List<String> stepRequirements;
private String logicType;
private List<String> conditionalRequirements;
}

0 comments on commit fd75cd8

Please sign in to comment.