diff --git a/core/src/mindustry/io/TypeIO.java b/core/src/mindustry/io/TypeIO.java index 7aa8cdb312..460809b3fc 100644 --- a/core/src/mindustry/io/TypeIO.java +++ b/core/src/mindustry/io/TypeIO.java @@ -188,8 +188,8 @@ public class TypeIO{ case 4 -> { byte exists = read.b(); if(exists != 0){ - //in a safe context, strings can only be 1000 chars - yield read.str(safe ? 1000 : 0); + //in a safe context, strings can only be 1200 chars + yield read.str(safe ? 1200 : 0); }else{ yield null; } diff --git a/core/src/mindustry/world/blocks/logic/MessageBlock.java b/core/src/mindustry/world/blocks/logic/MessageBlock.java index 5488750d2f..aea73b9e50 100644 --- a/core/src/mindustry/world/blocks/logic/MessageBlock.java +++ b/core/src/mindustry/world/blocks/logic/MessageBlock.java @@ -25,9 +25,9 @@ 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*250 = 1000 bytes, the max byte array size + /** maximum UTF-8 length per char is 4, so 4*300 = 1200 bytes, the max string byte size */ @NoPatch - public int maxTextLength = 250; + public int maxTextLength = 300; public int maxNewlines = 24; public MessageBlock(String name){