mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 03:00:29 +03:00
Updated MessageBlock limit to reflect writeUTF byte size
This commit is contained in:
Binary file not shown.
@@ -24,10 +24,9 @@ import mindustry.world.meta.*;
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
public class MessageBlock extends Block{
|
||||
private static final int maxByteLength = 999;
|
||||
/** maximum UTF-8 length per char is 4, so 4*300 = 1200 bytes, the max string byte size */
|
||||
/** writeUTF maximum UTF-8 length per char is 3, so 3*400 = 1200 bytes, the max string byte size */
|
||||
@NoPatch
|
||||
public int maxTextLength = 300;
|
||||
public int maxTextLength = 400;
|
||||
public int maxNewlines = 24;
|
||||
|
||||
public MessageBlock(String name){
|
||||
|
||||
Reference in New Issue
Block a user