Skip to content

Commit

Permalink
No protection from glass during the day
Browse files Browse the repository at this point in the history
  • Loading branch information
FIlchersSoup committed Sep 21, 2013
1 parent f430609 commit 4bd6346
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/digitalbrainery/vHunter/tasks/tskDayNight.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ public boolean isOutside(Player player)
Location yLoc = new Location(player.getLocation().getWorld(), (int) player.getLocation().getX(), i, (int) player.getLocation().getZ());
if (yLoc.getBlock() != null) {
if (yLoc.getBlock().getType() != Material.AIR) {
return false;
if(yLoc.getBlock().getType() != Material.GLASS) {
return false;
}
}
}
}
Expand Down

0 comments on commit 4bd6346

Please sign in to comment.