diff --git a/core/src/mindustry/input/DesktopInput.java b/core/src/mindustry/input/DesktopInput.java index 8b8a972f5b..5ad3716f30 100644 --- a/core/src/mindustry/input/DesktopInput.java +++ b/core/src/mindustry/input/DesktopInput.java @@ -148,6 +148,14 @@ public class DesktopInput extends InputHandler{ Draw.color(); drawRequest(cursorX, cursorY, block, rotation); block.drawPlace(cursorX, cursorY, rotation, validPlace(cursorX, cursorY, block, rotation)); + + if(block.saveConfig && block.lastConfig != null){ + brequest.set(cursorX, cursorY, rotation, block); + brequest.config = block.lastConfig; + + block.drawRequestConfig(brequest, allRequests()); + } + } Draw.reset(); diff --git a/core/src/mindustry/input/InputHandler.java b/core/src/mindustry/input/InputHandler.java index bdec1fa481..b890eda45c 100644 --- a/core/src/mindustry/input/InputHandler.java +++ b/core/src/mindustry/input/InputHandler.java @@ -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. */