mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-02-22 09:39:36 +01:00
fix: check for vehicle
This commit is contained in:
parent
2d736d8946
commit
af7caa1f66
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user