Fix the SLEEP flag not checking the right bed material.

This commit is contained in:
sk89q 2014-08-22 16:26:43 -07:00
parent 88c0bdfffb
commit 9b7970475a

View File

@ -219,7 +219,7 @@ public boolean apply(Location target) {
what = "open that";
/* Beds */
} else if (type == Material.BED) {
} else if (type == Material.BED_BLOCK) {
canUse = query.testBuild(target, associable, DefaultFlag.USE, DefaultFlag.SLEEP);
what = "sleep";