mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-18 15:20:37 +01:00
Fixed EntityTame event.
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
9bf573516b
commit
c8b101b9de
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ public class CraftEventFactory {
|
|||
*/
|
||||
public static EntityTameEvent callEntityTameEvent(EntityLiving entity, EntityHuman tamer) {
|
||||
org.bukkit.entity.Entity bukkitEntity = entity.getBukkitEntity();
|
||||
org.bukkit.entity.AnimalTamer bukkitTamer = (AnimalTamer) tamer.getBukkitEntity();
|
||||
org.bukkit.entity.AnimalTamer bukkitTamer = (tamer != null ? (AnimalTamer) tamer.getBukkitEntity() : null);
|
||||
CraftServer craftServer = (CraftServer) bukkitEntity.getServer();
|
||||
|
||||
EntityTameEvent event = new EntityTameEvent(bukkitEntity, bukkitTamer);
|
||||
|
|
Loading…
Reference in a new issue