Skip to content

Commit

Permalink
more reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed May 8, 2024
1 parent 5fc020a commit 5c81c01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package com.cleanroommc.groovyscript.compat.mods.draconicevolution;

import com.cleanroommc.groovyscript.GroovyScriptConfig;
import com.cleanroommc.groovyscript.compat.mods.ModPropertyContainer;

public class DraconicEvolution extends ModPropertyContainer {

public final Fusion fusion = new Fusion();
public final EnergyCore energyCore;

public DraconicEvolution() {
this.energyCore = GroovyScriptConfig.compat.draconicEvolutionEnergyCore ? new EnergyCore() : null;
}
public final EnergyCore energyCore = new EnergyCore();
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.cleanroommc.groovyscript.compat.mods.draconicevolution;

import com.cleanroommc.groovyscript.GroovyScriptConfig;
import com.cleanroommc.groovyscript.api.GroovyBlacklist;
import com.cleanroommc.groovyscript.api.GroovyLog;
import com.cleanroommc.groovyscript.api.IScriptReloadable;
Expand Down Expand Up @@ -40,6 +41,11 @@ private void init() {
onReload(); // increases version to 1
}

@Override
public boolean isEnabled() {
return GroovyScriptConfig.compat.draconicEvolutionEnergyCore;
}

@Override
public Collection<String> getAliases() {
return Alias.generateOfClass(EnergyCore.class);
Expand Down

This file was deleted.

0 comments on commit 5c81c01

Please sign in to comment.