From 41433805ad07baead987c21bdc4c6c4b876b93fe Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 4 Dec 2012 18:30:10 -0600 Subject: [PATCH] Fire EntityFormBlockEvent for FallingBlocks. Adds BUKKIT-3078 By: Wesley Wolfe --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index a840111fc2..a323f6fbc3 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -463,7 +463,7 @@ public class CraftEventFactory { } public static EntityChangeBlockEvent callEntityChangeBlockEvent(org.bukkit.entity.Entity entity, Block block, Material material, int data) { - EntityChangeBlockEvent event = new EntityChangeBlockEvent((LivingEntity) entity, block, material, (byte) data); + EntityChangeBlockEvent event = new EntityChangeBlockEvent(entity, block, material, (byte) data); entity.getServer().getPluginManager().callEvent(event); return event; }