Bugfixes
This commit is contained in:
@@ -79,6 +79,11 @@ public class NetServer implements ApplicationListener{
|
|||||||
con.hasBegunConnecting = true;
|
con.hasBegunConnecting = true;
|
||||||
con.mobile = packet.mobile;
|
con.mobile = packet.mobile;
|
||||||
|
|
||||||
|
if(packet.uuid == null || packet.usid == null){
|
||||||
|
con.kick(KickReason.idInUse);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(admins.isIDBanned(uuid)){
|
if(admins.isIDBanned(uuid)){
|
||||||
con.kick(KickReason.banned);
|
con.kick(KickReason.banned);
|
||||||
return;
|
return;
|
||||||
@@ -124,7 +129,7 @@ public class NetServer implements ApplicationListener{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(player.uuid.equals(packet.uuid) || player.usid.equals(packet.usid)){
|
if(player.uuid != null && player.usid != null && (player.uuid.equals(packet.uuid) || player.usid.equals(packet.usid))){
|
||||||
con.kick(KickReason.idInUse);
|
con.kick(KickReason.idInUse);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,16 +252,6 @@ public class ItemBridge extends Block{
|
|||||||
int rel2 = tile.relativeTo(source.x, source.y);
|
int rel2 = tile.relativeTo(source.x, source.y);
|
||||||
|
|
||||||
if(rel == rel2) return false;
|
if(rel == rel2) return false;
|
||||||
|
|
||||||
|
|
||||||
IntSetIterator it = entity.incoming.iterator();
|
|
||||||
|
|
||||||
while(it.hasNext){
|
|
||||||
int v = it.next();
|
|
||||||
if(tile.absoluteRelativeTo(Pos.x(v), Pos.y(v)) == rel2){
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
return source.block() instanceof ItemBridge && source.<ItemBridgeEntity>entity().link == tile.pos() && tile.entity.items.total() < itemCapacity;
|
return source.block() instanceof ItemBridge && source.<ItemBridgeEntity>entity().link == tile.pos() && tile.entity.items.total() < itemCapacity;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,19 @@ public class CommandCenter extends Block{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removed(Tile tile){
|
||||||
|
super.removed(tile);
|
||||||
|
|
||||||
|
ObjectSet<Tile> set = indexer.getAllied(tile.getTeam(), BlockFlag.comandCenter);
|
||||||
|
|
||||||
|
if(set.size == 1){
|
||||||
|
for(BaseUnit unit : unitGroups[tile.getTeam().ordinal()].all()){
|
||||||
|
unit.onCommand(UnitCommand.all[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
super.load();
|
super.load();
|
||||||
|
|||||||
Reference in New Issue
Block a user