Permalink
Browse files

Add missing disabled region support check.

Fixes WORLDGUARD-3839.
  • Loading branch information...
wizjany committed Jun 21, 2017
1 parent 84bc322 commit 3a8e3e84b8ac118cf83daa4fe7b492dfd27a96b5
@@ -515,6 +515,7 @@ public void onDamageEntity(DamageEntityEvent event) {
@EventHandler(ignoreCancelled = true)
public void onVehicleExit(VehicleExitEvent event) {
Entity vehicle = event.getVehicle();
if (!isRegionSupportEnabled(vehicle.getWorld())) return; // Region support disabled
Entity exited = event.getExited();
if (vehicle instanceof Tameable && exited instanceof Player) {

0 comments on commit 3a8e3e8

Please sign in to comment.