Some minor cleanup
This commit is contained in:
@@ -182,7 +182,7 @@ public class DesktopInput extends InputHandler{
|
|||||||
mode = none;
|
mode = none;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mode == placing || isPlacing()){
|
if(mode != none || isPlacing()){
|
||||||
selectRequests.clear();
|
selectRequests.clear();
|
||||||
lastSchematic = null;
|
lastSchematic = null;
|
||||||
}
|
}
|
||||||
@@ -365,7 +365,6 @@ public class DesktopInput extends InputHandler{
|
|||||||
|
|
||||||
if(!selectRequests.isEmpty()){
|
if(!selectRequests.isEmpty()){
|
||||||
flushRequests(selectRequests);
|
flushRequests(selectRequests);
|
||||||
//selectRequests.clear();
|
|
||||||
}else if(isPlacing()){
|
}else if(isPlacing()){
|
||||||
selectX = cursorX;
|
selectX = cursorX;
|
||||||
selectY = cursorY;
|
selectY = cursorY;
|
||||||
|
|||||||
@@ -123,15 +123,15 @@ public class Tile implements Position, TargetTrait{
|
|||||||
return block().solid && !block().synthetic() && block().fillsTile;
|
return block().solid && !block().synthetic() && block().fillsTile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Floor floor(){
|
public @NonNull Floor floor(){
|
||||||
return floor;
|
return floor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Block block(){
|
public @NonNull Block block(){
|
||||||
return block;
|
return block;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Floor overlay(){
|
public @NonNull Floor overlay(){
|
||||||
return overlay;
|
return overlay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user