mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
Fire EntityFormBlockEvent for FallingBlocks. Adds BUKKIT-3078
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
e506472f08
commit
41433805ad
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue