mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-12-03 08:03:26 +01:00
Reverted version number change, added check for null
This commit is contained in:
parent
cfe0559799
commit
a8726cc643
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user