Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import io.github.thebusybiscuit.sensibletoolbox.api.SensibleToolbox;
import io.github.thebusybiscuit.sensibletoolbox.api.items.BaseSTBBlock;
import io.github.thebusybiscuit.sensibletoolbox.blocks.router.ItemRouter;
import io.github.thebusybiscuit.sensibletoolbox.utils.VanillaInventoryUtils;
import me.desht.dhutils.Debugger;

public class SenderModule extends DirectionalItemRouterModule {
Expand Down Expand Up @@ -80,6 +81,11 @@ public boolean execute(Location loc) {
}

return nReceived > 0;
} else {
// Not router found with receiver module in range. Vanilla inventory holder adjacent to source router?
if (VanillaInventoryUtils.isVanillaInventory(target)) {
return vanillaInsertion(target, nToInsert, getFacing().getOppositeFace());
}
}
} else {
BaseSTBBlock stb = SensibleToolbox.getBlockAt(target.getLocation(), true);
Expand Down