diff options
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt | 5 | ||||
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/misc/Trapper.kt | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt b/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt index 0d1f62d..4ff7761 100644 --- a/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt +++ b/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt @@ -7,6 +7,7 @@ import com.ambientaddons.utils.Extensions.chest import com.ambientaddons.utils.Extensions.items import com.ambientaddons.utils.Extensions.stripControlCodes import com.ambientaddons.utils.SBLocation +import gg.essential.universal.UChat import net.minecraft.item.EnumDyeColor import net.minecraftforge.client.event.ClientChatReceivedEvent import net.minecraftforge.client.event.GuiOpenEvent @@ -63,8 +64,8 @@ object MelodyHelper { val chest = event.gui.chest?.lowerChestInventory if (chest?.name != "Click the button on time!" || isThrottled) return val colors = chest.items.map { it?.itemDamage } - val targetPaneCol = colors.indexOf(EnumDyeColor.MAGENTA.dyeDamage) - val movingPaneIndex = colors.indexOf(EnumDyeColor.LIME.dyeDamage) + val targetPaneCol = colors.indexOf(EnumDyeColor.MAGENTA.metadata) + val movingPaneIndex = colors.indexOf(EnumDyeColor.LIME.metadata) val movingPaneCol = movingPaneIndex % 9 val clickSlot = (movingPaneIndex / 9) * 9 + 7 if (targetPaneCol != movingPaneCol) { diff --git a/src/main/kotlin/com/ambientaddons/features/misc/Trapper.kt b/src/main/kotlin/com/ambientaddons/features/misc/Trapper.kt index 7311b7b..5c3e00c 100644 --- a/src/main/kotlin/com/ambientaddons/features/misc/Trapper.kt +++ b/src/main/kotlin/com/ambientaddons/features/misc/Trapper.kt @@ -56,7 +56,7 @@ object Trapper { if (config.autoTrapper) { mc.thePlayer.sendChatMessage(command) } - cooldownEndTime = System.currentTimeMillis() + 30000 + cooldownEndTime = System.currentTimeMillis() + (if (config.finneganActive) 30000 else 60000) } val matchResult = event.message.formattedText.let { trapperRegex.find(it) } if (matchResult != null) { |