Added enemy lights setting

This commit is contained in:
Anuken
2020-09-30 17:44:13 -04:00
parent 326640d32a
commit 7eb0da82de
5 changed files with 8 additions and 6 deletions

View File

@@ -77,10 +77,10 @@ public class EntityProcess extends BaseProcessor{
if(elem.is(Modifier.ABSTRACT) || elem.is(Modifier.NATIVE)) continue;
//get all statements in the method, store them
methodBlocks.put(elem.descString(), elem.tree().getBody().toString()
//replace all self() invocations with this
.replaceAll("this\\.<(.*)>self\\(\\)", "this")
.replaceAll("self\\(\\)", "this")
.replaceAll(" yield ", "")
.replaceAll("this\\.<(.*)>self\\(\\)", "this") //fix parameterized self() calls
.replaceAll("self\\(\\)", "this") //fix self() calls
.replaceAll(" yield ", "") //fix enchanced switch
.replaceAll("\\/\\*missing\\*\\/", "var") //fix vars
);
}
}