mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-11-13 06:05:36 +01:00
Add autosorting for EnderContainers inventories
This commit is contained in:
parent
f9cdebb243
commit
c06d5c569b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user