Skip to content

Commit

Permalink
Forgot a bit of testing code from a while ago.
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterpicker committed Nov 28, 2019
1 parent 5b1bd23 commit 30c7a5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static Block[] getBlocksImmuneToDecay() {
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());
Expand All @@ -79,7 +79,7 @@ public static void applySpreadDecay(World world, BlockPos pos) {
decayBlock(world, pos.south());
decayBlock(world, pos.west());
decayBlock(world, pos.east());
//}
}
}

/**
Expand Down

0 comments on commit 30c7a5c

Please sign in to comment.