Forgot a bit of testing code from a while ago.

This commit is contained in:
Waterpicker 2019-11-28 03:06:44 -06:00
parent 5b1bd232ab
commit 30c7a5c476

View file

@ -70,7 +70,7 @@ public final class LimboDecay {
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
//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.
//World.getBlockId() implements bounds checking, so we don't have to worry about reaching out of the world
decayBlock(world, pos.up());
@ -79,7 +79,7 @@ public final class LimboDecay {
decayBlock(world, pos.south());
decayBlock(world, pos.west());
decayBlock(world, pos.east());
//}
}
}
/**