Skip to content

Commit

Permalink
修复点击基岩会触发点击床的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
4o4E committed Jul 10, 2022
1 parent ab432ec commit bcd615b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "top.e404"
version = "2.0.6"
version = "2.0.7"

repositories {
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/listener/InteractListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object InteractListener : EListener(PL) {
val world = block.world.name
val location = block.location
//
if ("BED" in type) {
if (type.endsWith("_BED") || type == "BED") {
val cfg = Config.getEachOrGlobal(world) { preventUseBed }
if (cfg != null && cfg.enable) {
plugin.debug(
Expand All @@ -48,7 +48,7 @@ object InteractListener : EListener(PL) {
return
}
// 重生锚
if (block.type.name == "RESPAWN_ANCHOR") {
if (type == "RESPAWN_ANCHOR") {
val cfg = Config.getEachOrGlobal(world) { preventUseRespawnAnchor }
if (cfg != null
&& cfg.enable
Expand Down

0 comments on commit bcd615b

Please sign in to comment.