Skip to content

Commit 6a6b41f

Browse files
committed
- Bug Fix: Fixed TARDIS not storing Adventure Mode Dimensions correctly
1 parent 8d8992b commit 6a6b41f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
#### Bug Fixes
66
- Bug Fix: Placing and entering TARDIS door in the overworld crashes the game with Immersive Portals [#444](https://github.com/WhoCraft/TardisRefined/issues/444)
7-
- Bug Fix: Players can land TARDIs within TARDIS with Landing Pad [#447](https://github.com/WhoCraft/TardisRefined/issues/447)
7+
- Bug Fix: Players can land TARDIS within TARDIS with Landing Pad [#447](https://github.com/WhoCraft/TardisRefined/issues/447)
8+
- Bug Fix: Fixed TARDIS not storing Adventure Mode Dimensions correctly

common/src/main/java/whocraft/tardis_refined/common/capability/tardis/upgrades/UpgradeHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class UpgradeHandler {
2424
public static final int XP_PER_UPGRADE_POINT = 50;
2525

2626
@NotNull
27-
private final TardisLevelOperator tardisLevelOperator;
27+
private TardisLevelOperator tardisLevelOperator;
2828
private final List<Upgrade> unlockedUpgrades = new ArrayList<>();
2929
private int upgradeXP = 0;
3030
private int upgradePoints = 0;
@@ -34,6 +34,8 @@ public UpgradeHandler(@NotNull TardisLevelOperator tardisLevelOperator) {
3434
this.tardisLevelOperator = tardisLevelOperator;
3535
}
3636

37+
public UpgradeHandler() {}
38+
3739
public double calculateProgress() {
3840
int totalUpgrades = TRUpgrades.UPGRADE_DEFERRED_REGISTRY.entrySet().size();
3941
int unlockedCount = unlockedUpgrades.size();

common/src/main/java/whocraft/tardis_refined/common/tardis/manager/ProgressionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public boolean isLevelDiscovered(ResourceKey<Level> level) {
7373
public CompoundTag saveData(CompoundTag tag) {
7474
ListTag levelsList = new ListTag();
7575
for (ResourceKey<Level> level : ALLOWED_LEVELS) {
76-
levelsList.add(StringTag.valueOf(level.toString()));
76+
levelsList.add(StringTag.valueOf(level.location().toString()));
7777
}
7878
tag.put("DiscoveredLevels", levelsList);
7979
return tag;

0 commit comments

Comments
 (0)