Skip to content

Commit

Permalink
fix(util): do not generate chunk when getting chunk obj
Browse files Browse the repository at this point in the history
  • Loading branch information
Xzavier0722 committed Mar 30, 2024
1 parent 8db96a5 commit 8244387
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static boolean isSameLoc(Location l1, Location l2) {

public static Chunk toChunk(World w, String cKey) {
var loc = cKey.split(";")[1].split(":");
return w.getChunkAt(Integer.parseInt(loc[0]), Integer.parseInt(loc[1]));
return w.getChunkAt(Integer.parseInt(loc[0]), Integer.parseInt(loc[1]), false);
}

public static boolean isSameWorld(World w1, World w2) {
Expand Down

0 comments on commit 8244387

Please sign in to comment.