Fixed the drop for sunflowers and lilies.
Added BOP wood to trigger "Get Wood" Achievement.
This commit is contained in:
parent
09ed6fc0bc
commit
1c3f1e75b5
2 changed files with 6 additions and 5 deletions
|
@ -191,7 +191,7 @@ public class BlockBOPFlower extends BlockFlower
|
||||||
@Override
|
@Override
|
||||||
public void onNeighborBlockChange(World world, int x, int y, int z, int neighborID)
|
public void onNeighborBlockChange(World world, int x, int y, int z, int neighborID)
|
||||||
{
|
{
|
||||||
super.onNeighborBlockChange(world, x, y, z, neighborID);
|
//super.onNeighborBlockChange(world, x, y, z, neighborID);
|
||||||
this.checkFlowerChange(world, x, y, z);
|
this.checkFlowerChange(world, x, y, z);
|
||||||
if (world.getBlockMetadata(x, y, z) == SUNFLOWERTOP && world.getBlockId(x, y - 1, z) == this.blockID && world.getBlockMetadata(x, y - 1, z) != SUNFLOWERBOTTOM)
|
if (world.getBlockMetadata(x, y, z) == SUNFLOWERTOP && world.getBlockId(x, y - 1, z) == this.blockID && world.getBlockMetadata(x, y - 1, z) != SUNFLOWERBOTTOM)
|
||||||
world.setBlockToAir(x, y, z);
|
world.setBlockToAir(x, y, z);
|
||||||
|
|
|
@ -2,17 +2,15 @@ package biomesoplenty.helpers;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.inventory.IInventory;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.stats.Achievement;
|
import net.minecraft.stats.Achievement;
|
||||||
|
import net.minecraft.stats.AchievementList;
|
||||||
import net.minecraftforge.common.AchievementPage;
|
import net.minecraftforge.common.AchievementPage;
|
||||||
import net.minecraftforge.event.ForgeSubscribe;
|
import net.minecraftforge.event.ForgeSubscribe;
|
||||||
import net.minecraftforge.event.entity.player.EntityItemPickupEvent;
|
import net.minecraftforge.event.entity.player.EntityItemPickupEvent;
|
||||||
import biomesoplenty.api.Blocks;
|
import biomesoplenty.api.Blocks;
|
||||||
import biomesoplenty.api.Items;
|
import biomesoplenty.api.Items;
|
||||||
import biomesoplenty.configuration.BOPConfiguration;
|
import biomesoplenty.configuration.BOPConfiguration;
|
||||||
import cpw.mods.fml.common.ICraftingHandler;
|
|
||||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||||
|
|
||||||
public class AchievementHelper
|
public class AchievementHelper
|
||||||
|
@ -102,7 +100,7 @@ public class AchievementHelper
|
||||||
{
|
{
|
||||||
player.addStat(achMud, 1);
|
player.addStat(achMud, 1);
|
||||||
}
|
}
|
||||||
if (item.itemID == Blocks.flowers.get().blockID && item.getItemDamage() == 10)
|
if (item.itemID == Blocks.mushrooms.get().blockID && item.getItemDamage() == 0)
|
||||||
{
|
{
|
||||||
player.addStat(achShroom, 1);
|
player.addStat(achShroom, 1);
|
||||||
}
|
}
|
||||||
|
@ -115,6 +113,9 @@ public class AchievementHelper
|
||||||
player.addStat(achMoss, 1);
|
player.addStat(achMoss, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.itemID == Blocks.logs1.get().blockID || item.itemID == Blocks.logs2.get().blockID || (item.itemID == Blocks.logs3.get().blockID && item.getItemDamage() < 3))
|
||||||
|
player.addStat(AchievementList.mineWood, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void addAchievementDesc(String ach, String name, String desc)
|
private static void addAchievementDesc(String ach, String name, String desc)
|
||||||
|
|
Loading…
Reference in a new issue