Skip to content

Commit

Permalink
Fixed #4869
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Mar 6, 2021
1 parent fce30e6 commit 07d11f0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/core/NetClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static void sendMessage(String message){
public static void sendChatMessage(Player player, String message){

//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){
throw new ValidateException(player, "Player has sent a message above the text limit.");
Expand Down
10 changes: 10 additions & 0 deletions core/src/mindustry/mod/ContentParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ public class ContentParser{
readFields(result, data);
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) -> {
if(data.isString()){
//try to instantiate
Expand Down
9 changes: 9 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/29831.txt
Original file line number Diff line number Diff line change
@@ -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

2 comments on commit 07d11f0

@USMP-lancer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for fixing the o7 thing

@Volas171
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not fixed yet as packets still affect server ping

Please sign in to comment.