From 48b0217e833942a983dddccfd0147cc2fce1309a Mon Sep 17 00:00:00 2001 From: outductor Date: Mon, 28 Aug 2023 15:35:06 +0900 Subject: [PATCH] resolve error --- sbt | 5 +++-- .../com/github/unchama/seichiassist/util/BreakUtil.scala | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sbt b/sbt index 629896f809..08846fef59 100755 --- a/sbt +++ b/sbt @@ -34,8 +34,8 @@ set -o pipefail -declare -r sbt_release_version="1.9.3" -declare -r sbt_unreleased_version="1.9.3" +declare -r sbt_release_version="1.9.4" +declare -r sbt_unreleased_version="1.9.4" declare -r latest_213="2.13.11" declare -r latest_212="2.12.18" @@ -662,3 +662,4 @@ execRunner "$java_cmd" \ -jar "$sbt_jar" \ "${sbt_commands[@]}" \ "${residual_args[@]}" + \ No newline at end of file diff --git a/src/main/scala/com/github/unchama/seichiassist/util/BreakUtil.scala b/src/main/scala/com/github/unchama/seichiassist/util/BreakUtil.scala index 06c74bf6e3..aec569c167 100644 --- a/src/main/scala/com/github/unchama/seichiassist/util/BreakUtil.scala +++ b/src/main/scala/com/github/unchama/seichiassist/util/BreakUtil.scala @@ -155,7 +155,7 @@ object BreakUtil { val materialType = targetBlock.getType val isQuartzBlockOrQuartzStairs = materialType == Material.QUARTZ_BLOCK || materialType == Material.QUARTZ_STAIRS - val isQuartzSlab = materialType == Material.STEP && targetBlock.getData == 7.toByte + val isQuartzSlab = materialType == Material.STONE_SLAB && targetBlock.getData == 7.toByte val isMadeFromQuartz = isQuartzBlockOrQuartzStairs || isQuartzSlab val canBreakBlockMadeFromQuartz = !isMadeFromQuartz && SeichiAssist .instance