Skip to content

Commit 03b2867

Browse files
committed
Fix wrong tile coordinates being displayed in debug-map command
1 parent a884996 commit 03b2867

File tree

1 file changed

+6
-6
lines changed
  • common/src/main/java/de/bluecolored/bluemap/common/commands/commands

1 file changed

+6
-6
lines changed

common/src/main/java/de/bluecolored/bluemap/common/commands/commands/DebugCommand.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public Component block(CommandSource source, World world, @Argument("x") int x,
120120
))
121121
),
122122
item("chunk", format("( x: % | z: % )",
123-
text(chunkPos.getX()).color(HIGHLIGHT_COLOR),
124-
text(chunkPos.getY()).color(HIGHLIGHT_COLOR)
123+
text(chunkPos.getX()).color(HIGHLIGHT_COLOR),
124+
text(chunkPos.getY()).color(HIGHLIGHT_COLOR)
125125
)
126126
.appendNewline()
127127
.append(details(BASE_COLOR, TextFormat.stripNulls(
@@ -222,8 +222,8 @@ public void accept(int chunkX, int chunkZ, int timestamp) {
222222
text(z).color(HIGHLIGHT_COLOR)
223223
)),
224224
item("chunk", format("( x: % | z: % )",
225-
text(x >> 4).color(HIGHLIGHT_COLOR),
226-
text(z >> 4).color(HIGHLIGHT_COLOR)
225+
text(chunkPos.getX()).color(HIGHLIGHT_COLOR),
226+
text(chunkPos.getY()).color(HIGHLIGHT_COLOR)
227227
)
228228
.appendNewline()
229229
.append(details(BASE_COLOR,
@@ -232,8 +232,8 @@ public void accept(int chunkX, int chunkZ, int timestamp) {
232232
))
233233
),
234234
item("tile", format("( x: % | z: % )",
235-
text(x >> 4).color(HIGHLIGHT_COLOR),
236-
text(z >> 4).color(HIGHLIGHT_COLOR)
235+
text(tilePos.getX()).color(HIGHLIGHT_COLOR),
236+
text(tilePos.getY()).color(HIGHLIGHT_COLOR)
237237
)
238238
.appendNewline()
239239
.append(details(BASE_COLOR, stripNulls(

0 commit comments

Comments
 (0)