mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-11 03:31:19 +03:00
parent
236ed74cae
commit
4e946ae52b
@ -331,6 +331,8 @@ public class NetServer implements ApplicationListener{
|
|||||||
player.sendMessage("[scarlet]Did you really expect to be able to kick an admin?");
|
player.sendMessage("[scarlet]Did you really expect to be able to kick an admin?");
|
||||||
}else if(found.isLocal){
|
}else if(found.isLocal){
|
||||||
player.sendMessage("[scarlet]Local players cannot be kicked.");
|
player.sendMessage("[scarlet]Local players cannot be kicked.");
|
||||||
|
}else if(found.getTeam() != player.getTeam()){
|
||||||
|
player.sendMessage("[scarlet]Only players on your team can be kicked.");
|
||||||
}else{
|
}else{
|
||||||
if(!vtime.get()){
|
if(!vtime.get()){
|
||||||
player.sendMessage("[scarlet]You must wait " + voteTime/60 + " minutes between votekicks.");
|
player.sendMessage("[scarlet]You must wait " + voteTime/60 + " minutes between votekicks.");
|
||||||
|
@ -153,8 +153,10 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
|
|
||||||
void removeRequest(BuildRequest request){
|
void removeRequest(BuildRequest request){
|
||||||
selectRequests.removeValue(request, true);
|
selectRequests.removeValue(request, true);
|
||||||
|
if(!request.breaking){
|
||||||
removals.add(request);
|
removals.add(request);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
boolean isLinePlacing(){
|
boolean isLinePlacing(){
|
||||||
return mode == placing && lineMode && Mathf.dst(lineStartX * tilesize, lineStartY * tilesize, Core.input.mouseWorld().x, Core.input.mouseWorld().y) >= 3 * tilesize;
|
return mode == placing && lineMode && Mathf.dst(lineStartX * tilesize, lineStartY * tilesize, Core.input.mouseWorld().x, Core.input.mouseWorld().y) >= 3 * tilesize;
|
||||||
|
Loading…
Reference in New Issue
Block a user