mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fixed Corporea Interceptors not intercepting requests from Corporea Funnels for more than item and not checking NBT properly.
This commit is contained in:
1 parent
f6b5838f6e
commit
767cd39036
1 file changed
+2
-1
+2
-1
@@ -49,6 +49,7 @@ public class TileCorporeaInterceptor extends TileCorporeaBase implements ICorpor
|
||||
|
||||
@Override
|
||||
public void interceptRequestLast(Object request, int count, ICorporeaSpark spark, ICorporeaSpark source, List<ItemStack> stacks, List<IInventory> inventories, boolean doit) {
|
||||
System.out.println(request);
|
||||
List<ItemStack> filter = getFilter();
|
||||
for(ItemStack stack : filter)
|
||||
if(requestMatches(request, stack)) {
|
||||
@@ -79,7 +80,7 @@ public class TileCorporeaInterceptor extends TileCorporeaBase implements ICorpor
|
||||
|
||||
if(request instanceof ItemStack) {
|
||||
ItemStack stack = (ItemStack) request;
|
||||
return stack != null && stack.isItemEqual(filter) && ItemStack.areItemStacksEqual(filter, stack);
|
||||
return stack != null && stack.isItemEqual(filter) && ItemStack.areItemStackTagsEqual(filter, stack);
|
||||
}
|
||||
|
||||
String name = (String) request;
|
||||
|
||||
Reference in new issue
Block a user