Skip to content

Commit

Permalink
fix: check for vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchwang committed Feb 13, 2025
1 parent 2d736d8 commit af7caa1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void onEffect(@NonNull EntityPotionEffectEvent event) {

@EventHandler
public void onVehicleEntityCollision(VehicleEntityCollisionEvent e) {
if (e.getEntity() instanceof Boat) {
if (e.getVehicle() instanceof Boat) {
Location location = BukkitUtil.adapt(e.getEntity().getLocation());
if (location.isPlotArea()) {
if (e.getEntity() instanceof Player) {
Expand Down

0 comments on commit af7caa1

Please sign in to comment.