Skip to content

Commit

Permalink
me when intellij changes the format of stuff i didnt ask for
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Nov 22, 2024
1 parent 6715dea commit b5a688f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ object DungeonHighlightClickedBlocks {
}

if (lockedPattern.matches(event.message)) {
blocks.lastOrNull { it.value.displayText.contains("Chest") }?.value?.color =
config.lockedChestColor.toSpecialColor()
blocks.lastOrNull { it.value.displayText.contains("Chest") }?.value?.color = config.lockedChestColor.toSpecialColor()
}
}

Expand All @@ -75,8 +74,7 @@ object DungeonHighlightClickedBlocks {

val type = event.blockType

val color =
if (config.randomColor) getRandomColor().toColor() else getBlockProperties(type).color.toSpecialColor()
val color = if (config.randomColor) getRandomColor().toColor() else getBlockProperties(type).color.toSpecialColor()
val displayText = ExtendedChatColor(color.rgb, false).toString() + "Clicked " + getBlockProperties(type).name
blocks[event.position] = ClickedBlock(displayText, color)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,5 @@ object TunnelsMaps {

private val areas = setOf("Glacite Tunnels", "Dwarven Base Camp", "Great Glacite Lake", "Fossil Research Center")

private fun isEnabled() =
IslandType.DWARVEN_MINES.isInIsland() && config.enable && LorenzUtils.skyBlockArea in areas
private fun isEnabled() = IslandType.DWARVEN_MINES.isInIsland() && config.enable && LorenzUtils.skyBlockArea in areas
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ object VampireSlayerFeatures {
val isIchor = stand.hasSkullTexture(BLOOD_ICHOR_TEXTURE)
if (isIchor || stand.hasSkullTexture(KILLER_SPRING_TEXTURE)) {
val color =
(if (isIchor) configBloodIchor.color else configKillerSpring.color).toSpecialColor()
.addAlpha(config.withAlpha)
(if (isIchor) configBloodIchor.color else configKillerSpring.color).toSpecialColor().addAlpha(config.withAlpha)
if (distance <= 15) {
RenderLivingEntityHelper.setEntityColor(
stand,
Expand Down Expand Up @@ -286,8 +285,7 @@ object VampireSlayerFeatures {
val isIchor = stand.hasSkullTexture(BLOOD_ICHOR_TEXTURE)
val isSpring = stand.hasSkullTexture(KILLER_SPRING_TEXTURE)
if (!(isIchor && config.bloodIchor.highlight) && !(isSpring && config.killerSpring.highlight)) continue
val color = (if (isIchor) configBloodIchor.color else configKillerSpring.color).toSpecialColor()
.addAlpha(config.withAlpha)
val color = (if (isIchor) configBloodIchor.color else configKillerSpring.color).toSpecialColor().addAlpha(config.withAlpha)
if (distance <= 15) {
RenderLivingEntityHelper.setEntityColor(
stand,
Expand Down

0 comments on commit b5a688f

Please sign in to comment.