Skip to content

Commit 89cadda

Browse files
committed
♻️ refactor(protection): exclude BEDROCK from bed material checks
- update material checks to ensure BEDROCK is not included in bed-related protections
1 parent 7857e04 commit 89cadda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/dev/slne/surf/protect/paper/listener/listeners/ProtectionModeListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ object ProtectionModeListener : Listener {
196196
.contains("SHULKER_BOX")
197197
.contains("BARREL")
198198
.contains("BEACON")
199-
.contains("BED")
199+
.contains("BED").not(Material.BEDROCK) // BEDROCK is not a bed
200200
.contains("CAULDRON")
201201
.contains("COMPARATOR")
202202
.contains("DAYLIGHT_DETECTOR")

0 commit comments

Comments
 (0)