Made berries no longer spawn ontop of the player, made them harvestable by straw golems
This commit is contained in:
parent
b74853da42
commit
818e4f7c9f
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue