Skip to content

Commit

Permalink
hey there's a new method for this, yay
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 17, 2017
1 parent 44b6237 commit 60f54a0
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -148,6 +148,7 @@ public void onProjectileHits(ProjectileHitEvent event) {
return; // I can't explain this one either. It also chooses to happen whenever it pleases.
}

/*
Block block = null;
try {
BlockIterator bi = new BlockIterator(projectile.getLocation().getWorld(),
Expand All @@ -164,6 +165,9 @@ public void onProjectileHits(ProjectileHitEvent event) {
// As this error happens on no fault of the user, display no error message... just cancel the event.
return;
}
*/

Block block = event.getHitBlock();

if (block == null) {
return;
Expand Down

0 comments on commit 60f54a0

Please sign in to comment.