Skip to content

Commit

Permalink
Don't ignore items with a blacklist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe12o committed Feb 5, 2014
1 parent df153eb commit 0dd5e53
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,14 @@ public ToolMethodVisitor(MethodVisitor mv, List vars, JsonHelperObject patch) {

@Override
public void visitCode() {
if(!patch.blacklist) {
if(!patch.tileEntity) {
if(vars.size() == 1) {
ASMHelper.injectCode(mv, vars.get(0), patch.returnType);
} else if(vars.size() == 4) {
ASMHelper.injectCode(mv, vars.get(0), vars.get(1), vars.get(2), vars.get(3), patch.returnType);
}
} else {
if(patch.tileEntity && patch.blacklist) {
ASMHelper.injectCode(mv, patch.className, patch.facingVar, patch.varType, patch.returnType);
}
ASMHelper.injectCode(mv, patch.className, patch.facingVar, patch.varType, patch.returnType);
}
}
}
Expand Down

0 comments on commit 0dd5e53

Please sign in to comment.