missed some ifs

This commit is contained in:
Doze-Zoze authored and Cameron Ewell committed 2026-07-07 21:05:24 -04:00
1 parent 1737c3f4cf
commit a20204d47f
1 file changed
+8 -8
+8 -8
View File
@@ -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;
} }