diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-09-17 09:35:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-17 09:35:17 +0200 |
commit | 46d39d831c23b02481c3ed0b34ebf74ac26bc088 (patch) | |
tree | e21b4d9a6aadbeaa0c7aff42bc5ae87d83852e01 /src/main/java/at/hannibal2/skyhanni/events/ServerBlockChangeEvent.kt | |
parent | 1247a11ea7846af1531546263c525b3e005d0eed (diff) | |
download | skyhanni-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.kt | 4 |
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") |