mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Cargo Nodes now listen for canAccessChest()
This commit is contained in:
parent
4871a17f2d
commit
07dbfbd318
@ -1,15 +1,8 @@
|
||||
package me.mrCookieSlime.Slimefun.api.item_transport;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
import me.mrCookieSlime.CSCoreLibPlugin.CSCoreLib;
|
||||
import me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu.MenuClickHandler;
|
||||
import me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ClickAction;
|
||||
import me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.Item.CustomItem;
|
||||
@ -240,7 +233,9 @@ public class CargoNet {
|
||||
Block inputTarget = getAttachedBlock(entry.getKey().getBlock());
|
||||
ItemStack stack = null;
|
||||
int previousSlot = -1;
|
||||
|
||||
|
||||
if (!CSCoreLib.getLib().getProtectionManager().canAccessChest(BlockStorage.getBlockInfo(entry.getKey()).getUUID("owner"), inputTarget)) continue;
|
||||
|
||||
boolean roundrobin = BlockStorage.getBlockInfo(entry.getKey(), "round-robin").equals("true");
|
||||
|
||||
if (inputTarget != null) {
|
||||
@ -250,7 +245,7 @@ public class CargoNet {
|
||||
previousSlot = slot.getSlot();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (stack != null && output.containsKey(entry.getValue())) {
|
||||
List<Location> outputlist = new ArrayList<Location>(output.get(entry.getValue()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user