SPIGOT-4966: Provide access to Entity in PortalCreateEvent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-05-21 12:08:19 +10:00
parent 320645a5b8
commit 0bab608be7
3 changed files with 3 additions and 3 deletions

View File

@@ -121,7 +121,7 @@
+ }
+ }
+
+ PortalCreateEvent event = new PortalCreateEvent(blocks, bworld, PortalCreateEvent.CreateReason.FIRE);
+ PortalCreateEvent event = new PortalCreateEvent(blocks, bworld, null, PortalCreateEvent.CreateReason.FIRE);
+ this.a.getMinecraftWorld().getMinecraftServer().server.getPluginManager().callEvent(event);
+
+ if (event.isCancelled()) {