From 873ce288c24f88580e3cfc5278f6965f5ec8d442 Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Sat, 9 Jun 2012 01:40:29 -0500 Subject: [PATCH] Fixed decompile for loop handling --- .../net/minecraft/server/RemoteControlSession.java | 14 +++++++------- 1 file 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 3467220ab5..b56a8db8f6 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 {