fix: check for vehicle

This commit is contained in:
Pierre Maurice Schwang 2025-02-13 20:48:50 +01:00
parent 2d736d8946
commit af7caa1f66
No known key found for this signature in database
GPG Key ID: 37E613079F3E5BB9

View File

@ -376,7 +376,7 @@ public class PlayerEventListener implements Listener {
@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) {