Skip to content

Commit

Permalink
Filter out collisions with 'AIR'.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Oct 6, 2013
1 parent 88667e3 commit 0e34e71
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -3944,6 +3944,9 @@ public void serverCommand(ServerCommandEvent event) {
@EventHandler
public void vehicleBlockCollision(VehicleBlockCollisionEvent event) {

// Bukkit seems to be triggering collision on air.. let's filter that out.
if (event.getBlock().getType() == Material.AIR) return;

Player player = null;
dNPC npc = null;

Expand Down

0 comments on commit 0e34e71

Please sign in to comment.