Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -290,6 +290,7 @@ public class NetClient implements ApplicationListener{
|
|||||||
|
|
||||||
@Remote(called = Loc.client, variants = Variant.one)
|
@Remote(called = Loc.client, variants = Variant.one)
|
||||||
public static void connect(String ip, int port){
|
public static void connect(String ip, int port){
|
||||||
|
if(!steam && ip.startsWith("steam:")) return;
|
||||||
netClient.disconnectQuietly();
|
netClient.disconnectQuietly();
|
||||||
logic.reset();
|
logic.reset();
|
||||||
|
|
||||||
|
|||||||
@@ -2,16 +2,22 @@ package mindustry.world.draw;
|
|||||||
|
|
||||||
import arc.*;
|
import arc.*;
|
||||||
import arc.graphics.g2d.*;
|
import arc.graphics.g2d.*;
|
||||||
|
import mindustry.graphics.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
import mindustry.world.blocks.production.GenericCrafter.*;
|
import mindustry.world.blocks.production.GenericCrafter.*;
|
||||||
|
|
||||||
public class DrawRotator extends DrawBlock{
|
public class DrawRotator extends DrawBlock{
|
||||||
public TextureRegion rotator, top;
|
public TextureRegion rotator, top;
|
||||||
|
public boolean drawSpinSprite = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(GenericCrafterBuild build){
|
public void draw(GenericCrafterBuild build){
|
||||||
Draw.rect(build.block.region, build.x, build.y);
|
Draw.rect(build.block.region, build.x, build.y);
|
||||||
Draw.rect(rotator, build.x, build.y, build.totalProgress * 2f);
|
if(drawSpinSprite){
|
||||||
|
Drawf.spinSprite(rotator, build.x, build.y, build.totalProgress * 2f);
|
||||||
|
}else{
|
||||||
|
Draw.rect(rotator, build.x, build.y, build.totalProgress * 2f);
|
||||||
|
}
|
||||||
if(top.found()) Draw.rect(top, build.x, build.y);
|
if(top.found()) Draw.rect(top, build.x, build.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -312,6 +312,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
for(int i = 0; i < matches; i++){
|
for(int i = 0; i < matches; i++){
|
||||||
try{
|
try{
|
||||||
SteamID lobby = smat.getLobbyByIndex(i);
|
SteamID lobby = smat.getLobbyByIndex(i);
|
||||||
|
if(smat.getLobbyData(lobby, "hidden").equals("true")) continue;
|
||||||
String mode = smat.getLobbyData(lobby, "gamemode");
|
String mode = smat.getLobbyData(lobby, "gamemode");
|
||||||
//make sure versions are equal, don't list incompatible lobbies
|
//make sure versions are equal, don't list incompatible lobbies
|
||||||
if(mode == null || mode.isEmpty() || (Version.build != -1 && Strings.parseInt(smat.getLobbyData(lobby, "version"), -1) != Version.build)) continue;
|
if(mode == null || mode.isEmpty() || (Version.build != -1 && Strings.parseInt(smat.getLobbyData(lobby, "version"), -1) != Version.build)) continue;
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "mindustry.pl",
|
"name": "mindustry.pl",
|
||||||
"address": ["mindustry.pl:6000", "mindustry.pl:6666", "mindustry.pl:6966"]
|
"address": ["46.105.36.238:6000", "46.105.36.238:6666", "46.105.36.238:6966"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "C.A.M.S.",
|
"name": "C.A.M.S.",
|
||||||
|
|||||||
Reference in New Issue
Block a user