Skip to content

Commit

Permalink
Potentially fix startup crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LordDeatHunter committed Dec 11, 2023
1 parent 5dc9a31 commit e8f1d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.14.24
# Mod Properties
mod_version=3.3.1
mod_version=3.3.2
maven_group=wraith.waystones
archives_base_name=wraith-waystones
# Dependencies
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/wraith/fwaystones/util/WaystoneStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,10 @@ public NbtCompound toTag(NbtCompound tag) {
tag = new NbtCompound();
}
NbtList waystones = new NbtList();
HashSet<String> invalid = new HashSet<>();
for (Map.Entry<String, WaystoneValue> waystone : WAYSTONES.entrySet()) {
String hash = waystone.getKey();
WaystoneValue entity = waystone.getValue();
if (!entity.getEntity().getHash().equals(hash)) {
invalid.add(hash);
if (!entity.getHash().equals(hash)) {
continue;
}
NbtCompound waystoneTag = new NbtCompound();
Expand Down

0 comments on commit e8f1d42

Please sign in to comment.