mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-22 17:17:57 +01:00
Cleanup code
This commit is contained in:
parent
a5ea5115f9
commit
af645ea2e4
@ -278,7 +278,7 @@ public void onUseBlock(final UseBlockEvent event) {
|
||||
what = "sleep";
|
||||
|
||||
/* Respawn Anchors */
|
||||
} else if(target.getBlock().getType() == Material.RESPAWN_ANCHOR) {
|
||||
} else if(type == Material.RESPAWN_ANCHOR) {
|
||||
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.INTERACT, Flags.RESPAWN_ANCHORS));
|
||||
what = "use anchors";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user