Skip to content

Commit

Permalink
Fix location.center Y coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 4, 2016
1 parent 4ea777e commit cd5c702
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -441,7 +441,7 @@ public String getAttribute(Attribute attribute) {
// Returns the location at the center of the block this location is on.
// -->
if (attribute.startsWith("center")) {
return new dLocation(getWorld(), getBlockX() + 0.5, getBlockY(), getBlockZ() + 0.5)
return new dLocation(getWorld(), getBlockX() + 0.5, getBlockY() + 0.5, getBlockZ() + 0.5)
.getAttribute(attribute.fulfill(1));
}

Expand Down

0 comments on commit cd5c702

Please sign in to comment.