mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Port config rewrite (#5378)
Port Config system, Remove some unused code, Refactored various Tier enums out into their own package
This commit is contained in:
1 parent
a776879eed
commit
9d98ef575d
209 files changed
+3275
-2763
No files matched your search
@@ -5,7 +5,7 @@ import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.config.MekanismConfig.client;
|
||||
import mekanism.common.config.MekanismConfig;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
@@ -20,7 +20,7 @@ public final class HolidayManager {
|
||||
private static List<Holiday> holidaysNotified = new ArrayList<>();
|
||||
|
||||
public static void init() {
|
||||
if (client.holidays) {
|
||||
if (MekanismConfig.current().client.holidays.val()) {
|
||||
holidays.add(new Christmas());
|
||||
holidays.add(new NewYear());
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public final class HolidayManager {
|
||||
}
|
||||
|
||||
public static ResourceLocation filterSound(ResourceLocation sound) {
|
||||
if (!client.holidays) {
|
||||
if (!MekanismConfig.current().client.holidays.val()) {
|
||||
return sound;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user