This commit is contained in:
mfnalex 2021-10-01 15:22:17 +02:00
parent 695869f404
commit ab52b289c9
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 1.5.5
- Fixed furnaces being sortable using the left-click hotkey
## 11.5.4
- Fixed CratesReloaded preview GUI not opening when leftclicking chests

View File

@ -9,7 +9,7 @@
<name>ChestSort</name>
<url>https://www.chestsort.de</url>
<description>Allows automatic chest sorting!</description>
<version>11.5.4</version>
<version>11.5.5</version>
<packaging>jar</packaging>
<properties>

View File

@ -65,6 +65,7 @@ public class Listener implements org.bukkit.event.Listener {
if(!plugin.getConfig().getBoolean("allow-left-click-to-sort")) return;
Block clickedBlock = event.getClickedBlock();
if(!(clickedBlock.getState() instanceof Container)) return;
if(!belongsToChestLikeBlock(((Container)clickedBlock.getState()).getInventory())) return;
if(CrateReloadedHook.isCrate(clickedBlock)) {
return;
}