mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Updated to Minecraft version 1.4
This commit is contained in:
1 parent
0635f7c1b8
commit
87c36febeb
84 files changed
+1024
-793
No files matched your search
@@ -5,6 +5,7 @@ import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
import java.net.SocketAddress;
|
||||
import java.net.SocketException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -46,6 +47,11 @@ public class NetworkManager {
|
||||
try {
|
||||
socket.setSoTimeout(30000);
|
||||
socket.setTrafficClass(24);
|
||||
} catch (SocketException socketexception) {
|
||||
System.err.println(socketexception.getMessage());
|
||||
}
|
||||
|
||||
try {
|
||||
this.h = new DataInputStream(socket.getInputStream());
|
||||
this.i = new DataOutputStream(socket.getOutputStream());
|
||||
} catch (IOException ex) {
|
||||
|
||||
Reference in new issue
Block a user