diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-06-09 01:40:29 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-06-09 02:47:25 -0400 |
commit | 873ce288c24f88580e3cfc5278f6965f5ec8d442 (patch) | |
tree | 7f75e0138621440842f6cf66abf6ed49a66d7c11 | |
parent | 282fcb44ede671eb9217f45f9e4d1df692042ac7 (diff) | |
download | craftbukkit-873ce288c24f88580e3cfc5278f6965f5ec8d442.tar craftbukkit-873ce288c24f88580e3cfc5278f6965f5ec8d442.tar.gz craftbukkit-873ce288c24f88580e3cfc5278f6965f5ec8d442.tar.lz craftbukkit-873ce288c24f88580e3cfc5278f6965f5ec8d442.tar.xz craftbukkit-873ce288c24f88580e3cfc5278f6965f5ec8d442.zip |
Fixed decompile for loop handling
-rw-r--r-- | src/main/java/net/minecraft/server/RemoteControlSession.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/net/minecraft/server/RemoteControlSession.java b/src/main/java/net/minecraft/server/RemoteControlSession.java index 3467220a..b56a8db8 100644 --- a/src/main/java/net/minecraft/server/RemoteControlSession.java +++ b/src/main/java/net/minecraft/server/RemoteControlSession.java @@ -22,8 +22,9 @@ public class RemoteControlSession extends RemoteConnectionThread { } public void run() { - while (true) { + // while (true) { // CraftBukkit - moved down try { + while (true) { // CraftBukkit - moved from above if (!this.running) { return; } @@ -90,18 +91,17 @@ public class RemoteControlSession extends RemoteConnectionThread { } continue; } + } // CraftBukkit - Loop shift } catch (Exception exception1) { System.out.println(exception1); return; } finally { this.f(); } - - return; - } + // CraftBukkit - Loop shift } - private void a(int i, int j, String s) { + private void a(int i, int j, String s) throws IOException { // CraftBukkit - throws IOException ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream(1248); DataOutputStream dataoutputstream = new DataOutputStream(bytearrayoutputstream); @@ -114,11 +114,11 @@ public class RemoteControlSession extends RemoteConnectionThread { this.h.getOutputStream().write(bytearrayoutputstream.toByteArray()); } - private void e() { + private void e() throws IOException { // CraftBukkit - throws IOException this.a(-1, 2, ""); } - private void a(int i, String s) { + private void a(int i, String s) throws IOException { // CraftBukkit - throws IOException int j = s.length(); do { |