Skip to content

Commit

Permalink
fix entity.location.standing_on for slabs
Browse files Browse the repository at this point in the history
standing on a slab would return the wrong block
  • Loading branch information
mcmonkey4eva committed Sep 21, 2014
1 parent 5f4f16a commit 786838f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -1439,7 +1439,7 @@ else if (attribute.startsWith("equipment")) {
// Returns the location of what the entity is standing on.
// -->
if (attribute.startsWith("location.standing_on"))
return new dLocation(entity.getLocation().clone().add(0, -1, 0))
return new dLocation(entity.getLocation().clone().add(0, -0.5f, 0))
.getAttribute(attribute.fulfill(2));

// <--[tag]
Expand Down

0 comments on commit 786838f

Please sign in to comment.