mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-23 17:01:47 +00:00
Fixed hotkey crash
This commit is contained in:
parent
7f24c52a4f
commit
9570acb5e3
4 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
|||
# The Modding Tree changelog:
|
||||
|
||||
# v2.6.4.1 - 6/17/21
|
||||
# v2.6.4.2 - 6/17/21
|
||||
- Fixed a bug with the endgame screen.
|
||||
- Fixed hotkey-related crash.
|
||||
|
||||
# v2.6.4 - 6/17/21
|
||||
- The game now autosaves before closing, if autosave is on. (Thank you to thepaperpilot for this!)
|
||||
|
|
|
@ -13,7 +13,7 @@ let modInfo = {
|
|||
|
||||
// Set your version in num and name
|
||||
let VERSION = {
|
||||
num: "2.6.4.1",
|
||||
num: "2.6.4.2",
|
||||
name: "Fixed Reality",
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ var needCanvasUpdate = true;
|
|||
|
||||
// Don't change this
|
||||
const TMT_VERSION = {
|
||||
tmtNum: "2.6.4.1",
|
||||
tmtNum: "2.6.4.2",
|
||||
tmtName: "Fixed Reality"
|
||||
}
|
||||
|
||||
|
|
|
@ -305,9 +305,9 @@ ctrlDown = false
|
|||
|
||||
document.onkeydown = function (e) {
|
||||
if (player === undefined) return;
|
||||
if (gameEnded && !player.keepGoing) return;
|
||||
shiftDown = e.shiftKey
|
||||
ctrlDown = e.ctrlKey
|
||||
if (tmp.gameEnded && !player.keepGoing) return;
|
||||
let key = e.key
|
||||
if (ctrlDown) key = "ctrl+" + key
|
||||
if (onFocused) return
|
||||
|
|
Loading…
Reference in a new issue