Skip to content

Commit

Permalink
Check if hook is enabled to make the plugin work without RoseStacker.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChimpGamer committed Oct 5, 2024
1 parent 062ae2c commit 6fbf25d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class RoseStackerHook(private val plugin: UltimateMobCoinsPlugin) {
}

fun shouldIgnoreNormalDeathEvent(entity: LivingEntity): Boolean {
if (!hookEnabled) return false
val api = RoseStackerAPI.getInstance()
val stackedEntity = api.getStackedEntity(entity)

Expand Down

0 comments on commit 6fbf25d

Please sign in to comment.