This commit is contained in:
mfnalex 2020-06-13 20:35:39 +02:00
parent 21595857e5
commit 699b50410d
4 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,10 @@
# Changelog
## 8.10.2
- Fixed exception on versions prior to 1.11
## 8.10.1
- Minor bugfixes
## 8.10
- Made llama, donkey and mule chests sortable via hotkeys and automatic chest sorting
- Left-Click/Right-Click-Hotkey only works with empty hand now

View File

@ -9,7 +9,7 @@
<name>JeffChestSort</name>
<url>https://www.chestsort.de</url>
<description>Automatically sorts your chests!</description>
<version>8.10.1</version>
<version>8.10.2</version>
<packaging>jar</packaging>
<properties>

View File

@ -21,7 +21,7 @@ public class LlamaUtils {
}
public static boolean belongsToLlama(Inventory inv) {
if(inv.getHolder() instanceof ChestedHorse) {
if(inv.getHolder() != null && inv.getHolder().getClass().getName().endsWith("CraftLlama")) {
return true;
}
return false;

View File

@ -1,6 +1,6 @@
main: de.jeff_media.ChestSort.ChestSortPlugin
name: ChestSort
version: 8.10.1
version: 8.10.2
api-version: 1.13
description: Allows automatic chest sorting
author: mfnalex