Skip to content

Commit

Permalink
Don't consider the block part of a cuboid, fixes #1022
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 1, 2015
1 parent a0a6eba commit 45b7601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -44,8 +44,9 @@ public class EntityScriptContainer extends ScriptContainer {
//
// # What age the entity is
// age: baby/adult/<#>
// </code>
//
// # MORE OPTIONS ARE LISTED HERE: <@link url /denizen/mecs/dentity.>
// MORE OPTIONS ARE LISTED HERE: <@link url /denizen/mecs/dentity.>
//
// </code>
//
Expand Down
Expand Up @@ -142,7 +142,7 @@ public static int lastIndexOfUCL(String str) {
* @return true if c is in between.
*/
public static boolean isBetween(double a, double b, double c) {
return b > a ? c >= a && c <= b: c >= b && c <= a;
return b > a ? (c > a && c < b): (c > b && c < a);
}


Expand Down

0 comments on commit 45b7601

Please sign in to comment.