Skip to content

Commit

Permalink
Only print stacktrace in debug when blockstates are missing (SkriptLa…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee authored Jun 27, 2021
1 parent 55a376b commit 7f60de1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ public BlockValues createBlockValues(Material type, Map<String, String> states,
return new NewBlockValues(type, data, false);
} catch (IllegalArgumentException e) {
Skript.error("Parsing block state " + combined + " failed!");
e.printStackTrace();
if (Skript.debug())
e.printStackTrace();
return null;
}
}
Expand Down

0 comments on commit 7f60de1

Please sign in to comment.