Skip to content

Commit

Permalink
Fix queryRel returning data value for block at absolute coordinates (#…
Browse files Browse the repository at this point in the history
…2645)

* Replace toWorld with toWorldRel for relative data

* re-add accidentally deleted annotation
  • Loading branch information
Zeranny committed Mar 23, 2024
1 parent 0182d52 commit 9d20df9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -85,7 +85,7 @@ public int getBlockTypeRel(double x, double y, double z) {
@SuppressWarnings("deprecation")
@Override
public int getBlockDataRel(double x, double y, double z) {
return extent.getBlock(toWorld(x, y, z)).getBlockType().getLegacyCombinedId() & 0xF;
return extent.getBlock(toWorldRel(x, y, z).toBlockPoint()).getBlockType().getLegacyCombinedId() & 0xF;
}

//FAWE start
Expand Down

0 comments on commit 9d20df9

Please sign in to comment.