aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-09-17 09:35:17 +0200
committerGitHub <noreply@github.com>2024-09-17 09:35:17 +0200
commit46d39d831c23b02481c3ed0b34ebf74ac26bc088 (patch)
treee21b4d9a6aadbeaa0c7aff42bc5ae87d83852e01 /src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt
parent1247a11ea7846af1531546263c525b3e005d0eed (diff)
downloadskyhanni-46d39d831c23b02481c3ed0b34ebf74ac26bc088.tar.gz
skyhanni-46d39d831c23b02481c3ed0b34ebf74ac26bc088.tar.bz2
skyhanni-46d39d831c23b02481c3ed0b34ebf74ac26bc088.zip
Fix: Efficient Miner on Ore Mined Event (#2526)
Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt
index 07aa7630e..106ee2821 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt
@@ -7,7 +7,7 @@ import at.hannibal2.skyhanni.utils.toLorenzVec
import net.minecraft.block.state.IBlockState
import net.minecraft.util.BlockPos
-class ServerBlockChangeEvent(private val blockPos: BlockPos, private val blockState: IBlockState) : LorenzEvent() {
+class ServerBlockChangeEvent(blockPos: BlockPos, blockState: IBlockState) : LorenzEvent() {
val location by lazy { blockPos.toLorenzVec() }
val old by lazy { location.getBlockAt().toString().getName() }
@@ -17,7 +17,7 @@ class ServerBlockChangeEvent(private val blockPos: BlockPos, private val blockSt
companion object {
- val pattern = "Block\\{minecraft:(?<name>.*)}".toPattern()
+ private val pattern = "Block\\{minecraft:(?<name>.*)}".toPattern()
private fun String.getName() = pattern.matchMatcher(this) {
group("name")