Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Fix a dumb-dumb location tag bum-bum
Browse files Browse the repository at this point in the history
I fixed it, now bring me rum-rum!
  • Loading branch information
mcmonkey4eva committed Feb 16, 2017
1 parent 9bc21a7 commit a05a715
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public UtilLocation getInternal() {
// @ReturnType LocationTag
// @Returns the block coordinates of this location.
// -->
handlers.put("block", (dat, obj) -> new LocationTag(Math.round(((LocationTag) obj).internal.x),
Math.round(((LocationTag) obj).internal.y), Math.round(((LocationTag) obj).internal.z),
handlers.put("block", (dat, obj) -> new LocationTag(Math.floor(((LocationTag) obj).internal.x),
Math.floor(((LocationTag) obj).internal.y), Math.floor(((LocationTag) obj).internal.z),
((LocationTag) obj).internal.world));
// <--[tag]
// @Name LocationTag.x
Expand Down

0 comments on commit a05a715

Please sign in to comment.