Skip to content

Commit

Permalink
Fixed Maven build error
Browse files Browse the repository at this point in the history
  • Loading branch information
redwallhp committed Nov 4, 2016
1 parent 9a480ec commit 682e47f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nu/nerd/moblimiter/EntityHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public static LivingEntity getMobInLineOfSight(Player player) {
Entity ent = iterator.next();
if (!(ent instanceof LivingEntity)) iterator.remove();
}
for (Block block : player.getLineOfSight((Set) null, 6)) {
Set<Material> nullSet = null;
for (Block block : player.getLineOfSight(nullSet, 6)) {
if (block.getType() != Material.AIR) break; //view is obstructed
for (Entity ent : entities) {
Vector b = block.getLocation().toVector();
Expand Down

0 comments on commit 682e47f

Please sign in to comment.