Skip to content

Commit

Permalink
Fix matching forbidden types in set component command
Browse files Browse the repository at this point in the history
Gets rid of problems such as 'grass_block' matching 'grass' if
'grass' is a forbidden type.
  • Loading branch information
traksag committed Jul 8, 2020
1 parent f2191cb commit 6f27da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/main/java/com/plotsquared/core/command/Set.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public Set() {
}
} catch (final Throwable ignored) {
}
} else if (!blockType.contains(forbiddenType)) {
} else if (!blockType.equals(forbiddenType)) {
continue;
}
Captions.COMPONENT_ILLEGAL_BLOCK.send(player, forbiddenType);
Expand Down

0 comments on commit 6f27da6

Please sign in to comment.