Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private void processTNT(@NotNull TNTPrimed tnt) {

if (CannonDirectorRange >= 0) {
Block targetBlock = DirectorUtils.getDirectorBlock(p, CannonDirectorRange);
if (targetBlock != null && targetBlock.getType().equals(Material.AIR)) {
if (targetBlock != null && !targetBlock.getType().isAir()) {
// shoot directly at the block the player is looking at (IE: with convergence)
targetVector = targetBlock.getLocation().toVector().subtract(tnt.getLocation().toVector());
}
Expand Down
Loading