Made biome finder achievements require achievements to be enabled

This commit is contained in:
Adubbz 2013-07-05 14:05:59 +10:00
parent 2c6c864743
commit 499dadffa9

View file

@ -363,7 +363,7 @@ public class AchievementHelper
// Achievement checker
private static void onItemPickup(EntityPlayer player, ItemStack item)
{
if (BOPConfiguration.achievements == true)
if (BOPConfiguration.achievements)
{
if (item.itemID == Blocks.flowers.get().blockID || item.itemID == Block.plantRed.blockID || item.itemID == Block.plantYellow.blockID)
{
@ -414,6 +414,8 @@ public class AchievementHelper
@ForgeSubscribe
public void chunkEntered(EntityEvent.EnteringChunk event)
{
if (BOPConfiguration.achievements)
{
if (event.entity != null)
{
@ -846,6 +848,7 @@ public class AchievementHelper
}
}
}
}
private static void addAchievementDesc(String ach, String name, String desc)
{