Skip to content

Commit

Permalink
Fix some bad copy-pasta in expression environment queries.
Browse files Browse the repository at this point in the history
  • Loading branch information
wizjany committed Feb 28, 2019
1 parent 243d647 commit 4bd6d73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public int getBlockData(double x, double y, double z) {

@Override
public int getBlockTypeAbs(double x, double y, double z) {
return editSession.getBlock(toWorld(x, y, z)).getBlockType().getLegacyId();
return editSession.getBlock(BlockVector3.at(x, y, z)).getBlockType().getLegacyId();
}

@Override
Expand All @@ -68,7 +68,7 @@ public int getBlockDataAbs(double x, double y, double z) {

@Override
public int getBlockTypeRel(double x, double y, double z) {
return editSession.getBlock(toWorld(x, y, z)).getBlockType().getLegacyId();
return editSession.getBlock(toWorldRel(x, y, z).toBlockPoint()).getBlockType().getLegacyId();
}

@Override
Expand Down

0 comments on commit 4bd6d73

Please sign in to comment.