mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 05:43:49 -07:00
Update to Minecraft 1.13.1
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
+
|
||||
public class BlockFire extends Block {
|
||||
|
||||
public static final BlockStateInteger AGE = BlockProperties.W;
|
||||
public static final BlockStateInteger AGE = BlockProperties.X;
|
||||
@@ -32,7 +42,20 @@
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
int j = Math.min(15, i + random.nextInt(3) / 2);
|
||||
|
||||
@@ -103,14 +126,14 @@
|
||||
world.I().a(blockposition, this, this.a((IWorldReader) world) + random.nextInt(10));
|
||||
world.J().a(blockposition, this, this.a((IWorldReader) world) + random.nextInt(10));
|
||||
if (!this.d(world, blockposition)) {
|
||||
if (!world.getType(blockposition.down()).q() || i > 3) {
|
||||
- world.setAir(blockposition);
|
||||
@@ -140,12 +140,12 @@
|
||||
|
||||
@@ -241,7 +286,7 @@
|
||||
if (iblockdata1.getBlock() != iblockdata.getBlock()) {
|
||||
if (world.worldProvider.getDimensionManager().getDimensionID() > 0 || !((BlockPortal) Blocks.NETHER_PORTAL).a((GeneratorAccess) world, blockposition)) {
|
||||
if (world.worldProvider.getDimensionManager() != DimensionManager.OVERWORLD && world.worldProvider.getDimensionManager() != DimensionManager.NETHER || !((BlockPortal) Blocks.NETHER_PORTAL).a((GeneratorAccess) world, blockposition)) {
|
||||
if (!iblockdata.canPlace(world, blockposition)) {
|
||||
- world.setAir(blockposition);
|
||||
+ fireExtinguished(world, blockposition); // CraftBukkit - fuel block broke
|
||||
} else {
|
||||
world.I().a(blockposition, this, this.a((IWorldReader) world) + world.random.nextInt(10));
|
||||
world.J().a(blockposition, this, this.a((IWorldReader) world) + world.random.nextInt(10));
|
||||
}
|
||||
@@ -387,4 +432,12 @@
|
||||
blockfire.a(Blocks.BLACK_CARPET, 60, 20);
|
||||
|
Reference in New Issue
Block a user