Fix queryRel returning data value for block at absolute coordinates (#2645)

* Replace toWorld with toWorldRel for relative data

* re-add accidentally deleted annotation
This commit is contained in:
Zeranny 2024-03-23 19:26:13 +00:00 committed by GitHub
parent 0182d52c02
commit 9d20df9e6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ public class WorldEditExpressionEnvironment implements ExpressionEnvironment {
@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