mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-08 11:59:43 +01:00
Add missing disabled region support check.
Fixes WORLDGUARD-3839.
This commit is contained in:
parent
84bc322de7
commit
3a8e3e84b8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user