Cleanup code

This commit is contained in:
Joo200 2024-06-26 22:34:29 +02:00
parent a5ea5115f9
commit af645ea2e4

View File

@ -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";