Skip to content

Commit

Permalink
Fix replace values not being applied during the replace block
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTemportalist committed Jun 15, 2016
1 parent ecee47a commit de27741
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -146,6 +146,11 @@ class ExtensionAutomata {
public void replace(Closure<?> closure) {
this.replace = new PropertyReplace()
this.replace.with closure

Map<String, Object> replaceMap = new HashMap<>()
replaceMap.put(this.replace.version, this.getVersionPure())
replaceMap.put(this.replace.forge, this.replace.forge + this.getVersionForge())
this.minecraft.replace(replaceMap)
}

void setResources(boolean resources) {
Expand Down

0 comments on commit de27741

Please sign in to comment.