Forgot a bit of testing code from a while ago.
This commit is contained in:
parent
5b1bd232ab
commit
30c7a5c476
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ public final class LimboDecay {
|
||||||
public static void applySpreadDecay(World world, BlockPos pos) {
|
public static void applySpreadDecay(World world, BlockPos pos) {
|
||||||
//Check if we randomly apply decay spread or not. This can be used to moderate the frequency of
|
//Check if we randomly apply decay spread or not. This can be used to moderate the frequency of
|
||||||
//full spread decay checks, which can also shift its performance impact on the game.
|
//full spread decay checks, which can also shift its performance impact on the game.
|
||||||
//if (random.nextInt(MAX_DECAY_SPREAD_CHANCE) < DECAY_SPREAD_CHANCE) {
|
if (random.nextInt(MAX_DECAY_SPREAD_CHANCE) < DECAY_SPREAD_CHANCE) {
|
||||||
//Apply decay to the blocks above, below, and on all four sides.
|
//Apply decay to the blocks above, below, and on all four sides.
|
||||||
//World.getBlockId() implements bounds checking, so we don't have to worry about reaching out of the world
|
//World.getBlockId() implements bounds checking, so we don't have to worry about reaching out of the world
|
||||||
decayBlock(world, pos.up());
|
decayBlock(world, pos.up());
|
||||||
|
@ -79,7 +79,7 @@ public final class LimboDecay {
|
||||||
decayBlock(world, pos.south());
|
decayBlock(world, pos.south());
|
||||||
decayBlock(world, pos.west());
|
decayBlock(world, pos.west());
|
||||||
decayBlock(world, pos.east());
|
decayBlock(world, pos.east());
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue