Bugfixes
This commit is contained in:
@@ -36,6 +36,7 @@ public class LogicBlock extends Block{
|
|||||||
update = true;
|
update = true;
|
||||||
solid = true;
|
solid = true;
|
||||||
configurable = true;
|
configurable = true;
|
||||||
|
sync = true;
|
||||||
|
|
||||||
config(byte[].class, (LogicBuild build, byte[] data) -> build.readCompressed(data, true));
|
config(byte[].class, (LogicBuild build, byte[] data) -> build.readCompressed(data, true));
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import arc.util.*;
|
|||||||
import arc.util.io.*;
|
import arc.util.io.*;
|
||||||
import arc.util.pooling.*;
|
import arc.util.pooling.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.net.*;
|
|
||||||
import mindustry.ui.*;
|
import mindustry.ui.*;
|
||||||
import mindustry.ui.dialogs.*;
|
import mindustry.ui.dialogs.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
@@ -30,8 +29,8 @@ public class MessageBlock extends Block{
|
|||||||
destructible = true;
|
destructible = true;
|
||||||
|
|
||||||
config(String.class, (MessageBuild tile, String text) -> {
|
config(String.class, (MessageBuild tile, String text) -> {
|
||||||
if(net.server() && text.length() > maxTextLength){
|
if(text.length() > maxTextLength){
|
||||||
throw new ValidateException(player, "Player has gone above text limit.");
|
return; //no.
|
||||||
}
|
}
|
||||||
|
|
||||||
tile.message.ensureCapacity(text.length());
|
tile.message.ensureCapacity(text.length());
|
||||||
|
|||||||
Reference in New Issue
Block a user