Skip to content

Commit

Permalink
All blocks outside 0-255 should be AIR
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 22, 2020
1 parent 9d29c1f commit c021670
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -41,6 +41,9 @@ private boolean isClimbable(Material mat) {
@Override
public PassableState isPassable(BlockSource source, PathPoint point) {
Vector pos = point.getVector();
if (pos.getBlockY() <= 0 || pos.getBlockY() >= 255) {
return PassableState.UNPASSABLE;
}
Material above = source.getMaterialAt(pos.clone().add(UP));
Material below = source.getMaterialAt(pos.clone().add(DOWN));
Material in = source.getMaterialAt(pos);
Expand Down
Expand Up @@ -440,8 +440,9 @@ private void registerMethods(Class<?> clazz, Method parent, Object obj) {
List<Annotation> annotations = Lists.newArrayList();
for (Annotation annotation : method.getDeclaringClass().getAnnotations()) {
Class<? extends Annotation> annotationClass = annotation.annotationType();
if (annotationProcessors.containsKey(annotationClass))
if (annotationProcessors.containsKey(annotationClass)) {
annotations.add(annotation);
}
}
for (Annotation annotation : method.getAnnotations()) {
Class<? extends Annotation> annotationClass = annotation.annotationType();
Expand Down

0 comments on commit c021670

Please sign in to comment.