Skip to content

Commit

Permalink
fix: fix example plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Mar 23, 2024
1 parent d253e94 commit ea807c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ public static class WorldConfig extends OkaeriConfig {

public enum ChunkSendingStrategy {
ASYNC,
SYNC,
PARALLEL
SYNC
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void onPlayerInitialized(PlayerInitializedEvent event) {
int cx = ((int)loc.x()) >> 4;
int cz = ((int)loc.z()) >> 4;
list.add("Chunk: §a" + cx + ", " + cz);
list.add("Biome: §a" + player.getCurrentChunk().getBiome((int) loc.x() % 16, (int) loc.y(), (int) loc.z() % 16));
list.add("Biome: §a" + player.getCurrentChunk().getBiome((int) loc.x() & 15, (int) loc.y(), (int) loc.z() & 15));
scoreboard.setLines(list);
return true;
}, 20);
Expand Down

0 comments on commit ea807c3

Please sign in to comment.