From e59f2df34bf8b5ce57cdd957d06ca7d286508e09 Mon Sep 17 00:00:00 2001
From: mfnalex <1122571+mfnalex@users.noreply.github.com>
Date: Thu, 25 Jun 2020 21:43:59 +0200
Subject: [PATCH] 8.12.1 release
---
pom.xml | 2 +-
src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java | 1 +
src/main/resources/plugin.yml | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 1c5c4d4..903cb99 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
JeffChestSort
https://www.chestsort.de
Automatically sorts your chests!
- 8.12.0
+ 8.12.1
jar
diff --git a/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java b/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java
index e586b19..0c98faa 100644
--- a/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java
+++ b/src/main/java/de/jeff_media/ChestSort/ChestSortOrganizer.java
@@ -400,6 +400,7 @@ public class ChestSortOrganizer {
// Sort an inventory only between startSlot and endSlot
void sortInventory(Inventory inv, int startSlot, int endSlot) {
+ if(inv==null) return;
Class extends Inventory> invClass = inv.getClass();
try {
if (invClass.getMethod("getLocation", null) != null) {
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index ab40210..62f5317 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,6 +1,6 @@
main: de.jeff_media.ChestSort.ChestSortPlugin
name: ChestSort
-version: 8.12.0
+version: 8.12.1
api-version: "1.13"
description: Allows automatic chest sorting
author: mfnalex