summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockEnderPortal.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-19 21:00:13 +1000
committermd_5 <git@md-5.net>2017-05-19 21:00:13 +1000
commit10043529907a4ba913ebe2712876e4b1911263b8 (patch)
tree37f3cbb2527d02eac320ed0900bf92a4f3c8407c /nms-patches/BlockEnderPortal.patch
parent3ecbb59cbb9e20064d04628d26387742705ab9ac (diff)
downloadcraftbukkit-10043529907a4ba913ebe2712876e4b1911263b8.tar
craftbukkit-10043529907a4ba913ebe2712876e4b1911263b8.tar.gz
craftbukkit-10043529907a4ba913ebe2712876e4b1911263b8.tar.lz
craftbukkit-10043529907a4ba913ebe2712876e4b1911263b8.tar.xz
craftbukkit-10043529907a4ba913ebe2712876e4b1911263b8.zip
Update to Minecraft 1.12-pre5
Diffstat (limited to 'nms-patches/BlockEnderPortal.patch')
-rw-r--r--nms-patches/BlockEnderPortal.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/BlockEnderPortal.patch b/nms-patches/BlockEnderPortal.patch
index eef4d6ac..2a6fd12d 100644
--- a/nms-patches/BlockEnderPortal.patch
+++ b/nms-patches/BlockEnderPortal.patch
@@ -12,7 +12,7 @@
@@ -37,6 +39,10 @@
public void a(World world, BlockPosition blockposition, IBlockData iblockdata, Entity entity) {
- if (!entity.isPassenger() && !entity.isVehicle() && entity.bd() && !world.isClientSide && entity.getBoundingBox().c(iblockdata.d(world, blockposition).a(blockposition))) {
+ if (!entity.isPassenger() && !entity.isVehicle() && entity.bd() && !world.isClientSide && entity.getBoundingBox().c(iblockdata.e(world, blockposition).a(blockposition))) {
+ // CraftBukkit start - Entity in portal
+ EntityPortalEnterEvent event = new EntityPortalEnterEvent(entity.getBukkitEntity(), new org.bukkit.Location(world.getWorld(), blockposition.getX(), blockposition.getY(), blockposition.getZ()));
+ world.getServer().getPluginManager().callEvent(event);