Skip to content
This repository has been archived by the owner on Jul 1, 2018. It is now read-only.

Commit

Permalink
Fix a couple of inspection issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Mar 2, 2017
1 parent dbffffb commit 9055eeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class ASMTransformer implements IClassTransformer {
private final CustomChain patches = new CustomChain();

protected void add(Object[] patchers) {
private void add(Object[] patchers) {
for (Object patcher : patchers) {
if (patcher instanceof IPatcher) patches.add((IPatcher) patcher);
if (patcher instanceof ISource) patches.add((ISource) patcher);
Expand Down Expand Up @@ -266,8 +266,7 @@ public void dump(String className, byte[] bytes) {
DebugLogger.debug("Dump for " + className + "\n" + writer.toString());
}

public void writeDump(String className, byte[] bytes) {

private void writeDump(String className, byte[] bytes) {
if (className.endsWith("TurtlePlaceCommand")) {
StringWriter writer = new StringWriter();
PrintWriter printWriter = new PrintWriter(writer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
from = {
"org/squiddev/cctweaks/lua/patch/Computer_Patch",
"org/squiddev/cctweaks/lua/patch/ComputerThread_Rewrite",
"org/squiddev/cctweaks/core/patch/Terminal_Patch",
"org/squiddev/cctweaks/core/patch/Terminal_Patch"
},
to = {
"dan200/computercraft/core/computer/Computer",
"dan200/computercraft/core/computer/ComputerThread",
"dan200/computercraft/core/terminal/Terminal",
"dan200/computercraft/core/terminal/Terminal"
}
)
public class ServerComputer_Patch extends ServerComputer implements IComputerEnvironmentExtended, IExtendedServerComputer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void init() {
addModule(new RenderSquidOverlay());
}

public static void addModule(IModule module) {
private static void addModule(IModule module) {
if (module instanceof IClientModule) {
module = new RegisterWrapperClient((IClientModule) module);
}
Expand Down

0 comments on commit 9055eeb

Please sign in to comment.