Add autosorting for EnderContainers inventories

This commit is contained in:
utarwyn 2021-03-26 19:22:33 +01:00
parent f9cdebb243
commit c06d5c569b
No known key found for this signature in database
GPG Key ID: 620A888ED7D70468

View File

@ -158,7 +158,10 @@ public class ChestSortListener implements Listener {
Player p = (Player) event.getPlayer();
Inventory inventory = event.getInventory();
if (!isAPICall(inventory) && !belongsToChestLikeBlock(inventory) && !LlamaUtils.belongsToLlama(inventory)) {
if (!isAPICall(inventory)
&& !belongsToChestLikeBlock(inventory)
&& !plugin.enderContainersHook.isEnderchest(inventory)
&& !LlamaUtils.belongsToLlama(inventory)) {
return;
}
@ -205,7 +208,10 @@ public class ChestSortListener implements Listener {
Player p = (Player) event.getPlayer();
Inventory inventory = event.getInventory();
if (!isAPICall(inventory) && !belongsToChestLikeBlock(inventory) && !LlamaUtils.belongsToLlama(inventory)) {
if (!isAPICall(inventory)
&& !belongsToChestLikeBlock(inventory)
&& !plugin.enderContainersHook.isEnderchest(inventory)
&& !LlamaUtils.belongsToLlama(inventory)) {
return;
}