mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +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.*;
|
import static mindustry.Vars.*;
|
||||||
|
|
||||||
public class MessageBlock extends Block{
|
public class MessageBlock extends Block{
|
||||||
private static final int maxByteLength = 999;
|
/** writeUTF maximum UTF-8 length per char is 3, so 3*400 = 1200 bytes, the max string byte size */
|
||||||
/** maximum UTF-8 length per char is 4, so 4*300 = 1200 bytes, the max string byte size */
|
|
||||||
@NoPatch
|
@NoPatch
|
||||||
public int maxTextLength = 300;
|
public int maxTextLength = 400;
|
||||||
public int maxNewlines = 24;
|
public int maxNewlines = 24;
|
||||||
|
|
||||||
public MessageBlock(String name){
|
public MessageBlock(String name){
|
||||||
|
|||||||
Reference in New Issue
Block a user