missed some ifs
This commit is contained in:
1 parent
1737c3f4cf
commit
a20204d47f
1 file changed
+8
-8
+8
-8
@@ -137,8 +137,8 @@ namespace CalamityMod
|
|||||||
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
||||||
{
|
{
|
||||||
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
||||||
CalamityKeybinds.AccessoryKeybinds.IndexInRange(index);
|
if (CalamityKeybinds.AccessoryKeybinds.IndexInRange(index))
|
||||||
return CalamityKeybinds.AccessoryKeybinds[index].JustPressed;
|
return CalamityKeybinds.AccessoryKeybinds[index].JustPressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -163,8 +163,8 @@ namespace CalamityMod
|
|||||||
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
||||||
{
|
{
|
||||||
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
||||||
CalamityKeybinds.AccessoryKeybinds.IndexInRange(index);
|
if (CalamityKeybinds.AccessoryKeybinds.IndexInRange(index))
|
||||||
return CalamityKeybinds.AccessoryKeybinds[index].JustReleased;
|
return CalamityKeybinds.AccessoryKeybinds[index].JustReleased;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -189,8 +189,8 @@ namespace CalamityMod
|
|||||||
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
||||||
{
|
{
|
||||||
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
||||||
CalamityKeybinds.AccessoryKeybinds.IndexInRange(index);
|
if (CalamityKeybinds.AccessoryKeybinds.IndexInRange(index))
|
||||||
return CalamityKeybinds.AccessoryKeybinds[index].Current;
|
return CalamityKeybinds.AccessoryKeybinds[index].Current;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -213,8 +213,8 @@ namespace CalamityMod
|
|||||||
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
if (CalamityKeybinds.RentedKeybinds.Contains(item.type))
|
||||||
{
|
{
|
||||||
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
int index = CalamityKeybinds.RentedKeybinds.IndexOf(item.type);
|
||||||
CalamityKeybinds.AccessoryKeybinds.IndexInRange(index);
|
if (CalamityKeybinds.AccessoryKeybinds.IndexInRange(index))
|
||||||
return CalamityKeybinds.AccessoryKeybinds[index];
|
return CalamityKeybinds.AccessoryKeybinds[index];
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user