fix addSnow because mangoose is smarter than me
@@ -11,7 +11,6 @@ import com.ferreusveritas.dynamictrees.systems.nodemappers.NodeCoder;
import com.ferreusveritas.dynamictrees.systems.nodemappers.NodeFindEnds;
import com.ferreusveritas.dynamictrees.systems.nodemappers.NodeInflator;
import com.ferreusveritas.dynamictrees.trees.Species;
-import com.ferreusveritas.dynamictrees.util.BlockBounds;
import com.ferreusveritas.dynamictrees.util.MathHelper;
import com.ferreusveritas.dynamictrees.util.SafeChunkBounds;
import com.ferreusveritas.dynamictrees.util.SimpleVoxmap;
@@ -24,7 +23,6 @@ import net.minecraft.init.Blocks;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockPos.MutableBlockPos;
-import net.minecraft.util.math.ChunkPos;
import net.minecraft.world.World;
import net.minecraft.world.biome.Biome;
@@ -291,11 +289,9 @@ public class JoCode {
protected void addSnow(SimpleVoxmap leafMap, World world, BlockPos rootPos, Biome biome) {
- if(biome.isSnowyBiome()) {
- BlockBounds bounds = new BlockBounds(new ChunkPos(rootPos.getX() - 8, rootPos.getZ() - 8)).move(8, 0, 8);
-
+ if(biome.getDefaultTemperature() < 0.4f) {
for ( MutableBlockPos top : leafMap.getTops() ) {
- if ( world.canSnowAt(top, false) && bounds.inBounds(top) ) {
+ if ( world.canSnowAt(top, false) ) {
MutableBlockPos iPos = new MutableBlockPos(top);
int yOffset = 0;
do {
