Skip to content

Commit

Permalink
Use RandomIndexDB for questlines & entries (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchung01 authored Oct 27, 2024
1 parent 74fe179 commit b751e16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/betterquesting/questing/QuestLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import betterquesting.api.questing.IQuestLineEntry;
import betterquesting.api.utils.BigItemStack;
import betterquesting.api2.storage.DBEntry;
import betterquesting.api2.storage.SimpleDatabase;
import betterquesting.api2.storage.RandomIndexDatabase;
import betterquesting.storage.PropertyContainer;
import net.minecraft.init.Items;
import net.minecraft.nbt.NBTTagCompound;
Expand All @@ -15,7 +15,7 @@
import javax.annotation.Nullable;
import java.util.List;

public class QuestLine extends SimpleDatabase<IQuestLineEntry> implements IQuestLine {
public class QuestLine extends RandomIndexDatabase<IQuestLineEntry> implements IQuestLine {
private PropertyContainer info = new PropertyContainer();

public QuestLine() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/betterquesting/questing/QuestLineDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import betterquesting.api.questing.IQuestLine;
import betterquesting.api.questing.IQuestLineDatabase;
import betterquesting.api2.storage.DBEntry;
import betterquesting.api2.storage.SimpleDatabase;
import betterquesting.api2.storage.RandomIndexDatabase;
import betterquesting.api2.utils.QuestLineSorter;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
Expand All @@ -15,7 +15,7 @@
import java.util.HashMap;
import java.util.List;

public final class QuestLineDatabase extends SimpleDatabase<IQuestLine> implements IQuestLineDatabase {
public final class QuestLineDatabase extends RandomIndexDatabase<IQuestLine> implements IQuestLineDatabase {
public static final QuestLineDatabase INSTANCE = new QuestLineDatabase();

private final List<Integer> lineOrder = new ArrayList<>();
Expand Down

0 comments on commit b751e16

Please sign in to comment.