Browse Source

Fixed mccooldowns on SQL not working Fixes #5006

nossr50 1 year ago
parent
commit
64206c3ac8

+ 1 - 0
Changelog.txt

@@ -2,6 +2,7 @@ Version 2.2.008
     Fixed alchemy potions not upgrading correctly (This will only affect new potions made, see notes)
     Fixed alchemy potions not upgrading correctly (This will only affect new potions made, see notes)
     Fixed a bug where alchemy potions had italicized names
     Fixed a bug where alchemy potions had italicized names
     Fixed a bug where messages were not being sent to the action bar in 1.20.6
     Fixed a bug where messages were not being sent to the action bar in 1.20.6
+    (SQL) Fixed bug that broke /mccooldowns and /archery in some circumstances
     Fixed some exceptions that could happen with parties disabled (thanks IAISI)
     Fixed some exceptions that could happen with parties disabled (thanks IAISI)
 
 
     NOTES:
     NOTES:

+ 1 - 0
src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java

@@ -1273,6 +1273,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
         skillsDATS.put(SuperAbilityType.BERSERK, result.getInt(OFFSET_DATS + 5));
         skillsDATS.put(SuperAbilityType.BERSERK, result.getInt(OFFSET_DATS + 5));
         skillsDATS.put(SuperAbilityType.GREEN_TERRA, result.getInt(OFFSET_DATS + 6));
         skillsDATS.put(SuperAbilityType.GREEN_TERRA, result.getInt(OFFSET_DATS + 6));
         skillsDATS.put(SuperAbilityType.GIGA_DRILL_BREAKER, result.getInt(OFFSET_DATS + 7));
         skillsDATS.put(SuperAbilityType.GIGA_DRILL_BREAKER, result.getInt(OFFSET_DATS + 7));
+        skillsDATS.put(SuperAbilityType.EXPLOSIVE_SHOT, result.getInt(OFFSET_DATS + 8));
         // Archery - Unused - result.getInt(OFFSET_DATS + 8)
         // Archery - Unused - result.getInt(OFFSET_DATS + 8)
         skillsDATS.put(SuperAbilityType.SERRATED_STRIKES, result.getInt(OFFSET_DATS + 9));
         skillsDATS.put(SuperAbilityType.SERRATED_STRIKES, result.getInt(OFFSET_DATS + 9));
         skillsDATS.put(SuperAbilityType.SKULL_SPLITTER, result.getInt(OFFSET_DATS + 10));
         skillsDATS.put(SuperAbilityType.SKULL_SPLITTER, result.getInt(OFFSET_DATS + 10));