Skip to content

Commit

Permalink
Be more lenient with GSON nulls in material registry
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku committed Sep 22, 2018
1 parent 8b3899f commit 83fc7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
groupid=ch.njol
name=skript
version=2.3-alpha3
version=2.3-alpha4
3 changes: 2 additions & 1 deletion src/main/java/ch/njol/skript/aliases/MaterialRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public MaterialRegistry(Material[] materials) {
this.ids = new int[materials.length];
for (int i = 0; i < materials.length; i++) {
Material m = materials[i];
ids[m.ordinal()] = i;
if (m != null)
ids[m.ordinal()] = i;
}
}

Expand Down

0 comments on commit 83fc7b0

Please sign in to comment.