Compiles for 1.9! Very buggy, some things are missing.

This commit is contained in:
mezz committed 2016-05-05 01:11:21 -07:00
1 parent 5d74c1254b
commit 7bf554b024
135 files changed
+1710 -1919

No files matched your search

@@ -17,6 +17,7 @@ import java.util.Collections;
import java.util.Map.Entry;
import net.minecraft.block.Block;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@@ -206,15 +207,13 @@ public class ButterflyRoot extends SpeciesRoot implements IButterflyRoot {
}
private BlockPos getNextPos(World world, BlockPos pos){
int x = pos.getX();
int y = pos.getY();
int z = pos.getZ();
IBlockState blockState;
do {
y--;
} while (!BlockUtil.canReplace(world, new BlockPos(x, y, z)));
pos.down();
blockState = world.getBlockState(pos);
} while (!BlockUtil.canReplace(blockState, world, pos));
return new BlockPos(x, y, z);
return pos;
}
@Override