mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-02-21 06:41:54 +01:00
Merge branch 'master' into master
This commit is contained in:
commit
f6b4a2810f
2
pom.xml
2
pom.xml
@ -9,7 +9,7 @@
|
||||
<name>ChestSort</name>
|
||||
<url>https://www.chestsort.de</url>
|
||||
<description>Allows automatic chest sorting!</description>
|
||||
<version>14.1.0</version>
|
||||
<version>14.1.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
@ -480,11 +480,12 @@ public class ChestSortListener implements org.bukkit.event.Listener {
|
||||
// WARNING: The names are inconsistent! A chest will return
|
||||
// org.bukkit.craftbukkit.v1_14_R1.block.CraftChest
|
||||
// in Spigot 1.14 while a double chest returns org.bukkit.block.DoubleChest
|
||||
String holderClassName = holder.getClass().toString();
|
||||
return holder instanceof Chest || holder instanceof DoubleChest ||
|
||||
holder.getClass().toString().endsWith(".CraftMinecartChest") ||
|
||||
holder.getClass().toString().endsWith(".CraftShulkerBox")
|
||||
holderClassName.endsWith(".CraftMinecartChest") ||
|
||||
holderClassName.endsWith(".CraftShulkerBox")
|
||||
//Obsolete, is checked above by InventoryType
|
||||
|| holder.getClass().toString().endsWith(".CraftBarrel");
|
||||
|| holderClassName.endsWith(".CraftBarrel");
|
||||
}
|
||||
|
||||
private boolean isReadyToSort(Player player) {
|
||||
|
Loading…
Reference in New Issue
Block a user