diff --git a/engine/src/networking/com/jme3/network/HostedConnection.java b/engine/src/networking/com/jme3/network/HostedConnection.java index d8d3b40be..0e06783ed 100644 --- a/engine/src/networking/com/jme3/network/HostedConnection.java +++ b/engine/src/networking/com/jme3/network/HostedConnection.java @@ -46,7 +46,7 @@ public interface HostedConnection extends MessageConnection /** * Returns the server-unique ID for this client. */ - public long getId(); + public int getId(); /** * Closes and removes this connection from the server diff --git a/engine/src/networking/com/jme3/network/base/DefaultServer.java b/engine/src/networking/com/jme3/network/base/DefaultServer.java index 41870fd09..c02d28d8a 100644 --- a/engine/src/networking/com/jme3/network/base/DefaultServer.java +++ b/engine/src/networking/com/jme3/network/base/DefaultServer.java @@ -64,7 +64,7 @@ public class DefaultServer implements Server private Kernel fast; private KernelAdapter fastAdapter; private Redispatch dispatcher = new Redispatch(); - private Map connections = new ConcurrentHashMap(); + private Map connections = new ConcurrentHashMap(); private Map endpointConnections = new ConcurrentHashMap(); @@ -346,7 +346,7 @@ public class DefaultServer implements Server id = nextId.getAndIncrement(); } - public long getId() + public int getId() { return id; }