Skip to content

Commit

Permalink
Disable dfeault remove helmet hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsoft committed May 31, 2019
1 parent 4fe713a commit d88d66a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 1.22 (pre-release):
* [Change] Don't allow `KIS` to deploy or move the ground experiments.
* [Change] Allow the small cargo to be carried by kerbal.
* [Change] Disable the default remove helmet hotkey `J` as it conflicts with "Breaking ground" DLC.
* [Enhancement] Add medium portable cargo to carry 6 experiments.

# 1.21 (May 16th, 2019):
Expand Down
2 changes: 1 addition & 1 deletion Source/ModuleKISInventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ void UpdateKey() {
}

// Put/remove helmet
if (KIS_Shared.IsKeyDown(evaHelmetKey)) {
if (!string.IsNullOrEmpty(evaHelmetKey) && KIS_Shared.IsKeyDown(evaHelmetKey)) {
// If HelmetChange event haven't fired till this momemnt, then the helmet is ON.
helmetEquippedState = helmetEquippedState ?? true;
SetHelmet(!helmetEquippedState.Value);
Expand Down
2 changes: 1 addition & 1 deletion settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ KISConfig
{
inventoryKey = tab
rightHandKey = x
helmetKey = j
helmetKey = //j - J conflicts with Breaking Ground DLC.
slotsX = 2
slotsY = 4
slotSize = 50
Expand Down

0 comments on commit d88d66a

Please sign in to comment.