Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/Spigot-Server-Patches/0060-Made-EntityDismountEvent-Cancellable.patch

25 Zeilen
1.1 KiB
Diff

From 5c4d7d8d8e6ff1d01202e5de62da63fe66c55c96 Mon Sep 17 00:00:00 2001
2016-03-01 00:09:49 +01:00
From: Nik Gil <nikmanG@users.noreply.github.com>
2016-03-03 10:46:26 +01:00
Date: Thu, 3 Mar 2016 04:04:19 -0600
2016-03-01 00:09:49 +01:00
Subject: [PATCH] Made EntityDismountEvent Cancellable
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
index 782abd6..c3e6588 100644
2016-03-01 00:09:49 +01:00
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -1741,7 +1741,9 @@ public abstract class Entity implements ICommandListener {
}
2016-03-01 00:09:49 +01:00
}
// CraftBukkit end
- Bukkit.getPluginManager().callEvent( new org.spigotmc.event.entity.EntityDismountEvent(entity.getBukkitEntity(), this.getBukkitEntity())); // Spigot
2016-03-01 00:09:49 +01:00
+ // Paper start - make EntityDismountEvent cancellable
+ if (!new org.spigotmc.event.entity.EntityDismountEvent(entity.getBukkitEntity(), this.getBukkitEntity()).callEvent()) return;
2016-03-01 00:09:49 +01:00
+ // Paper end
this.passengers.remove(entity);
entity.j = 60;
}
--
2016-03-31 02:50:23 +02:00
2.8.0
2016-03-01 00:09:49 +01:00