mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:14:57 +00:00
Attempt to patch Minecart crash
This commit is contained in:
parent
5ccf83ecec
commit
1de17695a0
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue