Added edit logging and whole world rollback

This commit is contained in:
Commodore64x
2018-05-12 18:34:44 +10:00
parent 26025a3018
commit 7f2c2d9d6b
13 changed files with 273 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ public class DefaultKeybinds {
"rotate", new Axis(Input.SCROLL),
"toggle_menus", Input.C,
"block_info", Input.CONTROL_LEFT,
"block_logs", Input.I,
"player_list", Input.TAB,
"chat", Input.ENTER,
"chat_history_prev", Input.UP,

View File

@@ -107,6 +107,16 @@ public class DesktopInput extends InputHandler{
Cursors.restoreCursor();
}
}
if(recipe == null && !ui.hasMouse() && Inputs.keyDown("block_logs")) {
showCursor = true;
if(Inputs.keyTap("select")){
Timers.runTask(20f, () -> {
ui.hudfrag.blockfrag.showBlockLogs(getBlockX(), getBlockY());
Cursors.restoreCursor();
});
}
}
if(target != null && target.block().isConfigurable(target)){
showCursor = true;