Made biome finder achievements require achievements to be enabled
This commit is contained in:
parent
2c6c864743
commit
499dadffa9
1 changed files with 421 additions and 418 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue