@@ -1,11 +1,11 @@
|
||||
--- a/net/minecraft/server/FluidTypeLava.java
|
||||
+++ b/net/minecraft/server/FluidTypeLava.java
|
||||
@@ -35,6 +35,13 @@
|
||||
@@ -39,6 +39,13 @@
|
||||
|
||||
if (iblockdata.isAir()) {
|
||||
if (this.a((IWorldReader) world, blockposition1)) {
|
||||
+ // CraftBukkit start - Prevent lava putting something on fire
|
||||
+ if (world.getType(blockposition1) != Blocks.FIRE) {
|
||||
+ if (world.getType(blockposition1).getBlock() != Blocks.FIRE) {
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition1, blockposition).isCancelled()) {
|
||||
+ continue;
|
||||
+ }
|
||||
@@ -14,13 +14,13 @@
|
||||
world.setTypeUpdate(blockposition1, Blocks.FIRE.getBlockData());
|
||||
return;
|
||||
}
|
||||
@@ -51,6 +58,14 @@
|
||||
@@ -55,6 +62,14 @@
|
||||
}
|
||||
|
||||
if (world.isEmpty(blockposition2.up()) && this.b(world, blockposition2)) {
|
||||
+ // CraftBukkit start - Prevent lava putting something on fire
|
||||
+ BlockPosition up = blockposition2.up();
|
||||
+ if (world.getType(up) != Blocks.FIRE) {
|
||||
+ if (world.getType(up).getBlock() != Blocks.FIRE) {
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, up, blockposition).isCancelled()) {
|
||||
+ continue;
|
||||
+ }
|
||||
@@ -29,7 +29,7 @@
|
||||
world.setTypeUpdate(blockposition2.up(), Blocks.FIRE.getBlockData());
|
||||
}
|
||||
}
|
||||
@@ -139,7 +154,11 @@
|
||||
@@ -144,7 +159,11 @@
|
||||
|
||||
if (this.a(TagsFluid.LAVA) && fluid1.a(TagsFluid.WATER)) {
|
||||
if (iblockdata.getBlock() instanceof BlockFluids) {
|
||||
|
||||
Reference in New Issue
Block a user