Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding brackets to if()

  • Loading branch information...
commit 94184075bc2cc6c66ba184b68dc28741dd7460ff 1 parent a637960
@Flet authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/mojang/mojam/network/kryo/SnatchServer.java
View
4 src/com/mojang/mojam/network/kryo/SnatchServer.java
@@ -41,7 +41,9 @@ public void received(Connection c, Object object) {
if (object instanceof RegisterName) {
// Ignore the object if a client has already registered a name. This is
// impossible with our client, but a hacker could send messages at any time.
- if (connection.name != null) return;
+ if (connection.name != null) {
+ return;
+ }
// Ignore the object if the name is invalid.
String name = ((RegisterName)object).name;
Please sign in to comment.
Something went wrong with that request. Please try again.