Damage is already handled and entering is handled via interact.

This method is redundant.
This commit is contained in:
wizjany 2019-04-25 09:57:44 -04:00
parent 50e62bd0e7
commit d9b09ab7f1

View File

@ -812,11 +812,6 @@ public void onVehicleDamage(VehicleDamageEvent event) {
Events.fireToCancel(event, new DamageEntityEvent(event, create(attacker), event.getVehicle())); Events.fireToCancel(event, new DamageEntityEvent(event, create(attacker), event.getVehicle()));
} }
@EventHandler(ignoreCancelled = true)
public void onVehicleEnter(VehicleDamageEvent event) {
Events.fireToCancel(event, new UseEntityEvent(event, create(event.getAttacker()), event.getVehicle()));
}
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// Composite events // Composite events
//------------------------------------------------------------------------- //-------------------------------------------------------------------------