Skip to content
Permalink
Browse files

Lower-case material enums for blockdata

  • Loading branch information...
PseudoKnight committed Sep 23, 2019
1 parent 60e3cf2 commit d46cb4bb0eef5563f7c630c9694d2e4547fece60
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/main/java/com/laytonsmith/core/ObjectGenerator.java
@@ -1756,7 +1756,12 @@ public MCBlockData blockData(CArray ca, Target t) {
boolean first = true;
for(String key : ca.stringKeySet()) {
if(key.equals("block")) {
b.insert(0, ca.get("block", t).val());
String block = ca.get("block", t).val();
if(Character.isUpperCase(block.charAt(0))) {
// support material enum input
block = block.toLowerCase();
}
b.insert(0, block);
} else {
if(first) {
first = false;

0 comments on commit d46cb4b

Please sign in to comment.
You can’t perform that action at this time.