mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-17 11:05:02 +00:00
Hives, retrogen, worldgen, loc fixes, and assloads of refactoring.
This commit is contained in:
1 parent
f7fcf5ed9d
commit
48b9d59f33
56 files changed
+2109
-1539
No files matched your search
@@ -3,6 +3,7 @@ package magicbees.main.utils;
|
||||
import java.util.ArrayList;
|
||||
import java.util.EnumSet;
|
||||
|
||||
import magicbees.main.MagicBees;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import cpw.mods.fml.common.IScheduledTickHandler;
|
||||
import cpw.mods.fml.common.TickType;
|
||||
@@ -54,7 +55,7 @@ public class TickHandlerVersion implements IScheduledTickHandler
|
||||
{
|
||||
VersionInfo anInfo = modVersionInfo.get(modIndex);
|
||||
|
||||
if (anInfo.isNewVersionAvailable())
|
||||
if ((!MagicBees.getConfig().DisableUpdateNotification || anInfo.isCriticalUpdate()) && anInfo.isNewVersionAvailable())
|
||||
{
|
||||
EntityPlayer player = (EntityPlayer) tickData[0];
|
||||
player.sendChatToPlayer("[" + anInfo.modName + "] A new version is available: " + anInfo.getLatestVersion());
|
||||
|
||||
Reference in new issue
Block a user