mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Config previews
This commit is contained in:
parent
de77d80dab
commit
f188fbb567
2 changed files with 15 additions and 0 deletions
|
|
@ -507,6 +507,13 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
|
||||
protected void drawRequest(BuildRequest request){
|
||||
request.block.drawRequest(request, allRequests(), validPlace(request.x, request.y, request.block, request.rotation));
|
||||
|
||||
if(request.block.saveConfig && request.block.lastConfig != null){
|
||||
Object conf = request.config;
|
||||
request.config = block.lastConfig;
|
||||
request.block.drawRequestConfig(request, allRequests());
|
||||
request.config = conf;
|
||||
}
|
||||
}
|
||||
|
||||
/** Draws a placement icon for a specific block. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue