mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-10-05 01:57:28 +02:00
Fix the SLEEP flag not checking the right bed material.
This commit is contained in:
parent
88c0bdfffb
commit
9b7970475a
@ -219,7 +219,7 @@ public boolean apply(Location target) {
|
|||||||
what = "open that";
|
what = "open that";
|
||||||
|
|
||||||
/* Beds */
|
/* Beds */
|
||||||
} else if (type == Material.BED) {
|
} else if (type == Material.BED_BLOCK) {
|
||||||
canUse = query.testBuild(target, associable, DefaultFlag.USE, DefaultFlag.SLEEP);
|
canUse = query.testBuild(target, associable, DefaultFlag.USE, DefaultFlag.SLEEP);
|
||||||
what = "sleep";
|
what = "sleep";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user