From d5ecbd0e93a7a22d3631541c258635fdcc42a489 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 11 Jun 2016 16:11:51 +1000 Subject: SPIGOT-2387: Magma does not provide a block for EntityDamageEvent. --- nms-patches/BlockCactus.patch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nms-patches/BlockCactus.patch') diff --git a/nms-patches/BlockCactus.patch b/nms-patches/BlockCactus.patch index 951d5a9b..7c9fc0e4 100644 --- a/nms-patches/BlockCactus.patch +++ b/nms-patches/BlockCactus.patch @@ -21,13 +21,11 @@ world.setTypeAndData(blockposition, iblockdata1, 4); iblockdata1.doPhysics(world, blockposition1, this); } else { -@@ -87,7 +90,9 @@ +@@ -87,6 +90,7 @@ } public void a(World world, BlockPosition blockposition, IBlockData iblockdata, Entity entity) { + CraftEventFactory.blockDamage = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); // CraftBukkit entity.damageEntity(DamageSource.CACTUS, 1.0F); -+ CraftEventFactory.blockDamage = null; // CraftBukkit } - public IBlockData fromLegacyData(int i) { -- cgit v1.2.3