Skip to content

Commit af645ea

Browse files
committed
Cleanup code
1 parent a5ea511 commit af645ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/RegionProtectionListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public void onUseBlock(final UseBlockEvent event) {
278278
what = "sleep";
279279

280280
/* Respawn Anchors */
281-
} else if(target.getBlock().getType() == Material.RESPAWN_ANCHOR) {
281+
} else if(type == Material.RESPAWN_ANCHOR) {
282282
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.INTERACT, Flags.RESPAWN_ANCHORS));
283283
what = "use anchors";
284284

0 commit comments

Comments
 (0)