From aa008dff0f9bedbe88e1fe79831776b0a52eb90a Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 1 Mar 2016 08:32:46 +1100 Subject: Update to Minecraft 1.9 --- nms-patches/BlockStationary.patch | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'nms-patches/BlockStationary.patch') diff --git a/nms-patches/BlockStationary.patch b/nms-patches/BlockStationary.patch index f58767ba..4f9bbe20 100644 --- a/nms-patches/BlockStationary.patch +++ b/nms-patches/BlockStationary.patch @@ -9,10 +9,10 @@ public class BlockStationary extends BlockFluids { protected BlockStationary(Material material) { -@@ -41,6 +43,13 @@ +@@ -45,6 +47,13 @@ if (block.material == Material.AIR) { - if (this.f(world, blockposition1)) { + if (this.c(world, blockposition1)) { + // CraftBukkit start - Prevent lava putting something on fire + if (world.getType(blockposition1) != Blocks.FIRE) { + if (CraftEventFactory.callBlockIgniteEvent(world, blockposition1.getX(), blockposition1.getY(), blockposition1.getZ(), blockposition.getX(), blockposition.getY(), blockposition.getZ()).isCancelled()) { @@ -23,10 +23,12 @@ world.setTypeUpdate(blockposition1, Blocks.FIRE.getBlockData()); return; } -@@ -53,6 +62,14 @@ - BlockPosition blockposition2 = blockposition.a(random.nextInt(3) - 1, 0, random.nextInt(3) - 1); +@@ -60,7 +69,16 @@ + return; + } - if (world.isEmpty(blockposition2.up()) && this.m(world, blockposition2)) { ++ // PAIL: rename + if (world.isEmpty(blockposition2.up()) && this.d(world, blockposition2)) { + // CraftBukkit start - Prevent lava putting something on fire + BlockPosition up = blockposition2.up(); + if (world.getType(up) != Blocks.FIRE) { -- cgit v1.2.3