Made berries no longer spawn ontop of the player, made them harvestable by straw golems

This commit is contained in:
Adubbz 2013-05-20 06:11:15 +10:00
parent b74853da42
commit 818e4f7c9f
2 changed files with 3 additions and 2 deletions

View file

@ -249,10 +249,10 @@ public class BlockBOPFoliage extends BlockFlower implements IShearable
if (meta == 8)
{
world.setBlock(x, y, z, blockID, 4, 3);
EntityItem entityitem = new EntityItem(world, player.posX, player.posY - 1.0D, player.posZ, new ItemStack(Items.berries.get(), 1, 0));
EntityItem entityitem = new EntityItem(world, x, y, z, new ItemStack(Items.berries.get(), 1, 0));
if (!world.isRemote) {
world.spawnEntityInWorld(entityitem);
entityitem.onCollideWithPlayer(player);
//entityitem.onCollideWithPlayer(player);
}
return true;
}

View file

@ -16,6 +16,7 @@ public class ThaumcraftIntegration {
{
addAspects();
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.leavesFruit.get(), 1, 3));
FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Blocks.foliage.get(), 1, 8));
}
private static void addAspects()