Reverted version number change, added check for null

This commit is contained in:
Tim Southwick 2020-09-13 11:04:19 -04:00
parent cfe0559799
commit a8726cc643
2 changed files with 6 additions and 1 deletions

View File

@ -123,7 +123,7 @@
<dependency>
<groupId>de.jeff_media</groupId>
<artifactId>ChestSortAPI</artifactId>
<version>1.1.0</version>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -343,6 +343,11 @@ public class ChestSortOrganizer {
// Generate a map of "{placeholder}", "sortString" pairs for an ItemStack
Map<String, String> getSortableMap(ItemStack item) {
if (item == null) {
// Empty map for non-item
return new HashMap<String, String>();
}
String blocksFirst;
String itemsFirst;
if (item.getType().isBlock()) {