mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-18 11:47:47 +07:00
Increased max packet size to 1024
This commit is contained in:
@ -29,7 +29,7 @@ import java.util.stream.Collectors;
|
|||||||
})
|
})
|
||||||
public class RemoteMethodAnnotationProcessor extends AbstractProcessor {
|
public class RemoteMethodAnnotationProcessor extends AbstractProcessor {
|
||||||
/**Maximum size of each event packet.*/
|
/**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.*/
|
/**Name of the base package to put all the generated classes.*/
|
||||||
private static final String packageName = "io.anuke.mindustry.gen";
|
private static final String packageName = "io.anuke.mindustry.gen";
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import io.anuke.mindustry.world.Tile;
|
|||||||
|
|
||||||
public class NetEvents {
|
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){
|
public static void callClientMethod(int something, Player player, String str, boolean bool){
|
||||||
System.out.println("Called " + something + " ? " + bool);
|
System.out.println("Called " + something + " ? " + bool);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user