Fixes #369 and fixes rubber tree spikes not decaying

This commit is contained in:
modmuss50 2016-03-05 11:37:29 +00:00
parent 0204ddc539
commit 7d514b718a
3 changed files with 37 additions and 3 deletions

View file

@ -9,6 +9,7 @@ import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.common.IPlantable;
import techreborn.blocks.BlockRubberLeaves;
import techreborn.blocks.BlockRubberLog;
import techreborn.init.ModBlocks;
@ -132,7 +133,7 @@ public class RubberTreeGenerator extends WorldGenerator {
if(topLogPos != null){
for (int i = 0; i < 4; i++) {
BlockPos spikePos = topLogPos.up(i);
this.setBlockAndNotifyAdequately(world, spikePos, ModBlocks.rubberLeaves.getDefaultState());
this.setBlockAndNotifyAdequately(world, spikePos, ModBlocks.rubberLeaves.getDefaultState().withProperty(BlockRubberLeaves.DECAYABLE, true));
}
}
}