mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-03 13:30:25 +07:00
Increased max packet size to 1024
This commit is contained in:
parent
c443eee15d
commit
ab9cdf5610
@ -29,7 +29,7 @@ import java.util.stream.Collectors;
|
||||
})
|
||||
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";
|
||||
|
||||
|
@ -6,7 +6,7 @@ import io.anuke.mindustry.world.Tile;
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user