Fixed #4869
This commit is contained in:
@@ -190,7 +190,7 @@ public class NetClient implements ApplicationListener{
|
|||||||
public static void sendChatMessage(Player player, String message){
|
public static void sendChatMessage(Player player, String message){
|
||||||
|
|
||||||
//do not receive chat messages from clients that are too young or not registered
|
//do not receive chat messages from clients that are too young or not registered
|
||||||
if(Time.timeSinceMillis(player.con.connectTime) < 500 || !player.con.hasConnected || !player.isAdded()) return;
|
if(net.server() && player != null && (Time.timeSinceMillis(player.con.connectTime) < 500 || !player.con.hasConnected || !player.isAdded())) return;
|
||||||
|
|
||||||
if(message.length() > maxTextLength){
|
if(message.length() > maxTextLength){
|
||||||
throw new ValidateException(player, "Player has sent a message above the text limit.");
|
throw new ValidateException(player, "Player has sent a message above the text limit.");
|
||||||
|
|||||||
@@ -92,6 +92,16 @@ public class ContentParser{
|
|||||||
readFields(result, data);
|
readFields(result, data);
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
put(Weather.class, (type, data) -> {
|
||||||
|
if(data.isString()){
|
||||||
|
return field(Weathers.class, data);
|
||||||
|
}
|
||||||
|
var bc = resolve(data.getString("type", ""), ParticleWeather.class);
|
||||||
|
data.remove("type");
|
||||||
|
Weather result = make(bc);
|
||||||
|
readFields(result, data);
|
||||||
|
return result;
|
||||||
|
});
|
||||||
put(DrawBlock.class, (type, data) -> {
|
put(DrawBlock.class, (type, data) -> {
|
||||||
if(data.isString()){
|
if(data.isString()){
|
||||||
//try to instantiate
|
//try to instantiate
|
||||||
|
|||||||
9
fastlane/metadata/android/en-US/changelogs/29831.txt
Normal file
9
fastlane/metadata/android/en-US/changelogs/29831.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[This is a truncated changelog, see Github for full notes]
|
||||||
|
- Various minor bugfixes
|
||||||
|
- Made water extractor use metaglass for building, to be consistent with pumps
|
||||||
|
- Added automatic conveyor/conduit bridging over obstacles
|
||||||
|
- Added 'defender' AI for Oct; follows nearby units
|
||||||
|
- Cores can now replace most transport blocks; turrets can now replace each other
|
||||||
|
- Improved bridge & power node linking previews
|
||||||
|
- Buffed Segment & Vela
|
||||||
|
- Logic: More hints
|
||||||
Reference in New Issue
Block a user