mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-12-05 00:53:52 +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>
|
<dependency>
|
||||||
<groupId>de.jeff_media</groupId>
|
<groupId>de.jeff_media</groupId>
|
||||||
<artifactId>ChestSortAPI</artifactId>
|
<artifactId>ChestSortAPI</artifactId>
|
||||||
<version>1.1.0</version>
|
<version>1.0.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -343,6 +343,11 @@ public class ChestSortOrganizer {
|
|||||||
|
|
||||||
// Generate a map of "{placeholder}", "sortString" pairs for an ItemStack
|
// Generate a map of "{placeholder}", "sortString" pairs for an ItemStack
|
||||||
Map<String, String> getSortableMap(ItemStack item) {
|
Map<String, String> getSortableMap(ItemStack item) {
|
||||||
|
if (item == null) {
|
||||||
|
// Empty map for non-item
|
||||||
|
return new HashMap<String, String>();
|
||||||
|
}
|
||||||
|
|
||||||
String blocksFirst;
|
String blocksFirst;
|
||||||
String itemsFirst;
|
String itemsFirst;
|
||||||
if (item.getType().isBlock()) {
|
if (item.getType().isBlock()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user