Attempt to patch Minecart crash

This commit is contained in:
business-goose 2022-03-23 22:58:50 +00:00
parent 5ccf83ecec
commit 1de17695a0

View file

@ -144,7 +144,10 @@ public class EntityListener implements Listener {
@EventHandler(priority = EventPriority.HIGH)
public void onVehicleCollision(VehicleEntityCollisionEvent event) {
event.setCollisionCancelled(true);
event.setPickupCancelled(true);
event.setCancelled(true);
event.getVehicle().remove();
}
@EventHandler(priority = EventPriority.HIGH)