Skip to content

Commit

Permalink
Merge branch 'refs/heads/improvement/reworked-miningevents' into back…
Browse files Browse the repository at this point in the history
…end/pss-chat
  • Loading branch information
j10a1n15 committed Jul 22, 2024
2 parents e11cedb + e255897 commit 11d3bfb
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package me.partlysanestudios.partlysaneskies.events.skyblock.mining

import me.partlysanestudios.partlysaneskies.events.EventManager
import me.partlysanestudios.partlysaneskies.features.mining.events.MiningEvent
import me.partlysanestudios.partlysaneskies.utils.ChatUtils
import me.partlysanestudios.partlysaneskies.utils.HypixelUtils.inAdvancedMiningIsland

class MinesEvent(val miningEvent: MiningEvent) {
Expand All @@ -19,10 +18,8 @@ class MinesEvent(val miningEvent: MiningEvent) {
MiningEvent.entries
.firstOrNull { it.triggeredEvent(formattedMessage) }
?.let { event ->
ChatUtils.sendClientMessage("Triggered event: ${event.event}")
for (function in functionList) {
try {
ChatUtils.sendClientMessage("Calling function: ${function.function.name}")
function.function.call(function.obj, MinesEvent(event))
} catch (e: Exception) {
e.printStackTrace()
Expand Down

0 comments on commit 11d3bfb

Please sign in to comment.