Skip to content

Commit

Permalink
Increased max packet size to 1024
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jun 7, 2018
1 parent c443eee commit ab9cdf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
})
public class RemoteMethodAnnotationProcessor extends AbstractProcessor {
/**Maximum size of each event packet.*/
public static final int maxPacketSize = 512;
public static final int maxPacketSize = 1024;
/**Name of the base package to put all the generated classes.*/
private static final String packageName = "io.anuke.mindustry.gen";

Expand Down
2 changes: 1 addition & 1 deletion core/src/io/anuke/mindustry/net/NetEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class NetEvents {

@Remote(unreliable = true, one = true)
@Remote(unreliable = true, one = true, all = false)
public static void callClientMethod(int something, Player player, String str, boolean bool){
System.out.println("Called " + something + " ? " + bool);
}
Expand Down

0 comments on commit ab9cdf5

Please sign in to comment.