Skip to content

Commit

Permalink
Fixed a potential issue with SetBridge and SetDoor
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Nov 11, 2018
1 parent 682c835 commit 06cea9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void load() {
if (!line.isEmpty()) { if (!line.isEmpty()) {
String[] split = RegexUtil.MINUS_PATTERN.split(line); String[] split = RegexUtil.MINUS_PATTERN.split(line);
// parse the material data // parse the material data
if (split.length > 0) { if (split.length > 1) {
offBlock = BlockSyntax.getBukkitBlock(split[1]); offBlock = BlockSyntax.getBukkitBlock(split[1]);
} }
// parse the material and data for toggle on // parse the material and data for toggle on
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void load() {
if (!line.isEmpty()) { if (!line.isEmpty()) {
String[] split = RegexUtil.MINUS_PATTERN.split(line); String[] split = RegexUtil.MINUS_PATTERN.split(line);
// parse the material data // parse the material data
if (split.length > 0) { if (split.length > 1) {
offBlock = BlockSyntax.getBukkitBlock(split[1]); offBlock = BlockSyntax.getBukkitBlock(split[1]);
} }
// parse the material and data for toggle on // parse the material and data for toggle on
Expand Down

0 comments on commit 06cea9a

Please sign in to comment.