mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-12-03 08:03:26 +01:00
12.0.6
This commit is contained in:
parent
437a57e37d
commit
0c1ca91360
@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## 12.0.6
|
||||
- Fixed "additional-hotkeys" not working for ender chests
|
||||
|
||||
## 12.0.4
|
||||
- Added config option "allow-gui" (defaults to true)
|
||||
|
||||
|
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>12.0.4</version>
|
||||
<version>12.0.6</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
@ -638,8 +638,12 @@ public class Listener implements org.bukkit.event.Listener {
|
||||
return;
|
||||
}
|
||||
// Possible fix for #57
|
||||
if (e.getInventory().getHolder() == null) return;
|
||||
if (e.getInventory().getHolder() == p && e.getInventory() != p.getInventory()) return;
|
||||
if (e.getInventory().getHolder() == null && !e.getView().getTopInventory().equals(p.getEnderChest())) {
|
||||
return;
|
||||
}
|
||||
if (e.getInventory().getHolder() == p && e.getInventory() != p.getInventory()) {
|
||||
return;
|
||||
}
|
||||
// End Possible fix for #57
|
||||
if (e.getInventory().getType() != InventoryType.CHEST
|
||||
&& e.getInventory().getType() != InventoryType.DISPENSER
|
||||
@ -647,6 +651,7 @@ public class Listener implements org.bukkit.event.Listener {
|
||||
&& e.getInventory().getType() != InventoryType.ENDER_CHEST
|
||||
&& !e.getInventory().getType().name().equalsIgnoreCase("SHULKER_BOX")
|
||||
&& (e.getInventory().getHolder() == null || !e.getInventory().getHolder().getClass().toString().endsWith(".CraftBarrel"))
|
||||
&& e.getInventory() != p.getEnderChest()
|
||||
&& !(e.getInventory().getHolder() instanceof ISortable)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user