Merge pull request #13167 from dback2/lowercaseUnequip

Desktop equip: fix unequipping with capital U
This commit is contained in:
Seth Alves 2018-05-15 10:55:19 -07:00 committed by GitHub
commit 6da59d15e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -828,7 +828,7 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
};
var onKeyPress = function(event) {
if (event.text === UNEQUIP_KEY) {
if (event.text.toLowerCase() === UNEQUIP_KEY) {
if (rightEquipEntity.targetEntityID) {
rightEquipEntity.endEquipEntity();
}