Commits

md_5 authored 6470560480d
SPIGOT-1264: Spurious BlockFadeEvent
No tags

nms-patches/BlockFire.patch

Modified
87 87 + world.getServer().getPluginManager().callEvent(event);
88 88 +
89 89 + if (event.isCancelled()) {
90 90 + return;
91 91 + }
92 92 + // CraftBukkit end
93 93 +
94 94 if (random.nextInt(j + 10) < 5 && !world.isRainingAt(blockposition)) {
95 95 int l = j + random.nextInt(5) / 4;
96 96
97 -@@ -219,7 +255,7 @@
98 -
99 - world.setTypeAndData(blockposition, this.getBlockData().set(BlockFire.AGE, Integer.valueOf(l)), 3);
100 - } else {
101 -- world.setAir(blockposition);
102 -+ fireExtinguished(world, blockposition); // CraftBukkit
103 - }
104 -
105 - if (iblockdata.getBlock() == Blocks.TNT) {
106 97 @@ -276,7 +312,7 @@
107 98
108 99 public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Block block) {
109 100 if (!world.getType(blockposition.down()).q() && !this.c(world, blockposition)) {
110 101 - world.setAir(blockposition);
111 102 + fireExtinguished(world, blockposition); // CraftBukkit - fuel block gone
112 103 }
113 104
114 105 }
115 106 @@ -284,7 +320,7 @@

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut