mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-14 01:04:06 +00:00
fix another derp, and un deprecate pulseproxy
This commit is contained in:
1 parent
5d78fe53d3
commit
d4e3a1f0bc
2 files changed
+2
-12
No files matched your search
@@ -14,8 +14,6 @@ public class ForgeCFG implements IConfiguration{
|
||||
private final String confPath;
|
||||
private final String description;
|
||||
|
||||
private Map<String, Boolean> modules;
|
||||
|
||||
/**
|
||||
* Creates a new Configuration object.
|
||||
*
|
||||
@@ -37,14 +35,8 @@ public class ForgeCFG implements IConfiguration{
|
||||
|
||||
@Override
|
||||
public boolean isModuleEnabled(PulseMeta meta) {
|
||||
Boolean enabled = modules.get(meta.getId());
|
||||
if (enabled == null) {
|
||||
modules.put(meta.getId(), meta.isEnabled());
|
||||
enabled = meta.isEnabled();
|
||||
config.get(description, meta.getId(), meta.isEnabled(), meta.getDescription()).set(meta.isEnabled());
|
||||
}
|
||||
return enabled;
|
||||
|
||||
logger.warn("pulsar stuffs " + meta.getId());
|
||||
return config.get(description, meta.getId(), meta.isEnabled(), meta.getDescription()).getBoolean(meta.isEnabled());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -5,8 +5,6 @@ import java.lang.annotation.*;
|
||||
/**
|
||||
* Annotation to denote a field that should be populated by a side-specific proxy.
|
||||
*
|
||||
* @deprecated Use FML's @SidedProxy instead.
|
||||
*
|
||||
* @author Arkan <arkan@drakon.io>
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
Reference in new issue
Block a user