mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-03 15:08:02 +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";
|
what = "sleep";
|
||||||
|
|
||||||
/* Respawn Anchors */
|
/* 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));
|
canUse = query.testBuild(BukkitAdapter.adapt(target), associable, combine(event, Flags.INTERACT, Flags.RESPAWN_ANCHORS));
|
||||||
what = "use anchors";
|
what = "use anchors";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user