Skip to content

Commit

Permalink
Merge pull request #14 from repo-alt/master
Browse files Browse the repository at this point in the history
Fixed passive/personal anchors waking up in other dimensions.
  • Loading branch information
repo-alt authored Apr 11, 2021
2 parents 83bc310 + d731be2 commit 7bc29e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repositories {
}
}

version = "1.6.3"
version = "1.6.4"
group = "com.mitchej123.hodgepodge"
archivesBaseName = "hodgepodge"
sourceCompatibility = 1.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event) {
int y = buf.readInt();
int z = buf.readInt();
WorldServer w = DimensionManager.getWorld(dim);
if (w == null) {
DimensionManager.initDimension(dim);
w = DimensionManager.getWorld(dim);
}
if (w != null) {
// if there is some different tile at the place, ok, we will load this chunk one last time
w.getChunkProvider().loadChunk(x >> 4, z >> 4);
Expand Down

0 comments on commit 7bc29e6

Please sign in to comment.