mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c2c6b7966 |
@@ -123,7 +123,15 @@ public abstract class BlockFireBase extends BlockFire implements ITTinkererBlock
|
||||
world.setBlock(xT, yT, zT, targetTransform, 0, 3);
|
||||
}
|
||||
}
|
||||
if (blockMeta >= 15) {
|
||||
|
||||
if (blockMeta < 15 && blockMeta > 0) {
|
||||
// Randomly increase the age of a fire
|
||||
// 0 meta is considered a source and never increases, for any other meta we have a chance to increase
|
||||
final int newMeta = Math.min(blockMeta + rand.nextInt(3) / 2, 15);
|
||||
if (newMeta > blockMeta) {
|
||||
world.setBlockMetadataWithNotify(x, y, z, newMeta, 4);
|
||||
}
|
||||
} else if (blockMeta >= 15) {
|
||||
// No spreading if we're at max meta
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user