Skip to content

Conversation

@programmer3481
Copy link
Contributor

@programmer3481 programmer3481 commented Nov 19, 2025

  • Please check if the PR fulfills these requirements
  • The commit message are well described
  • All changes have fully been tested
  • What kind of change does this PR introduce? (Bug fix, feature, ...)
    Fix for ME bridge importFluid method can only import from first slot #794 , and a few other me/rs bridge method bugs

  • What is the current behavior? (You can also link to an open issue here)
    see issue above, also some cases where it under/over exports/imports items
    explained a bit here in the discord https://discord.com/channels/734726882058174486/779400553813377074/1440567741634445383

  • What is the new behavior (if this is a feature change)?
    n/a

  • Does this PR introduce a breaking change? (What changes might users need to make in their scripts due to this PR?)
    There may be slight differences in the way it moves items, like some items may be able to transfer it didn't before, some ordering changed, but i doubt it would cause that big of a problem

  • Other information:
    Some testing have been done for the item and fluid methods, although a bit more review might be needed
    Also haven't tested the mechanism chemical stuff yet, mostly due to the fact that i have no idea how that mod works, might want to test that too
    This is almost a complete refactor of the methods so there may be new bugs
    Also need to port this to 1.20 and other supported versions too probably, although shouldn't be that difficult, the changed code looks quite similar

@NotNull
@Override
public FluidStack drain(FluidFilter filter, FluidAction simulate) {
public FluidStack drain(FluidFilter filter, int count, FluidAction simulate) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better don't change the method signature. Just keep using filter's count.

if (amount > 0) {
if (toSlot < -1 || toSlot >= inventoryTo.getChemicalTanks())
return 0;
for (int i = toSlot == -1 ? 0 : toSlot; i < (toSlot == -1 ? inventoryTo.getChemicalTanks() : toSlot + 1); i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eh tbh this implementation did not fulfill me, I'll make a fix later.

@github-actions
Copy link
Contributor

Build Preview

badge

You can find files attached to the below linked Workflow Run URL (Logs).

Name Link
Commit e3af6c1
Logs https://github.com/IntelligenceModding/AdvancedPeripherals/actions/runs/19503474274
Jar Files AdvancedPeripherals PR 795
Expires At 2026-02-17T15:42:43Z

@SirEndii
Copy link
Member

I guess this can be closed due to #796 796

@SirEndii SirEndii closed this Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants