From 8269b993936262e845788843889007383a370484 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 19 Mar 2016 12:19:17 +1100 Subject: [PATCH] SPIGOT-1968: Use correct explosion yield --- nms-patches/Explosion.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nms-patches/Explosion.patch b/nms-patches/Explosion.patch index 85de23f8c9..4cba2e11d2 100644 --- a/nms-patches/Explosion.patch +++ b/nms-patches/Explosion.patch @@ -90,13 +90,13 @@ + float yield; + + if (explode != null) { -+ EntityExplodeEvent event = new EntityExplodeEvent(explode, location, blockList, 0.3F); ++ EntityExplodeEvent event = new EntityExplodeEvent(explode, location, blockList, 1.0F / this.size); + this.world.getServer().getPluginManager().callEvent(event); + cancelled = event.isCancelled(); + bukkitBlocks = event.blockList(); + yield = event.getYield(); + } else { -+ BlockExplodeEvent event = new BlockExplodeEvent(location.getBlock(), blockList, 0.3F); ++ BlockExplodeEvent event = new BlockExplodeEvent(location.getBlock(), blockList, 1.0F / this.size); + this.world.getServer().getPluginManager().callEvent(event); + cancelled = event.isCancelled(); + bukkitBlocks = event.blockList();