Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refill crafting grid functionality from PR #73 brought up to date #240

Draft
wants to merge 4 commits into
base: 1.18.x
Choose a base branch
from

Conversation

frizzle101101
Copy link

@frizzle101101 frizzle101101 commented Jun 5, 2024

…ervers/SophisticatedCore into 1.18.x of https://github.com/FrizMods/SophisticatedStorage

# Conflicts resolved:
#	src/main/java/net/p3pp3rf1y/sophisticatedcore/common/gui/StorageContainerMenuBase.java
#	src/main/resources/assets/sophisticatedcore/textures/gui/icons.png
-creating new button icons for the refill crafting grid functionality(were in last commit, removing the unused icon) -adding the ability for the refill crafting grid to pull from the player inventory as well
@frizzle101101
Copy link
Author

@P3pp3rF1y can you confirm this is what you want, I'm not sure if you like the icons for the buttons as I did them or if it is better to use the other refill icon that already exists along with the red cross-out circle for off

…kit on a iron pick axe to consume a diamond pick axe because the InventoryHelper does not check tags when using extractFromInventory(Item item, int count, IItemHandler inventory, boolean simulate), this is fine for its original use in the compacting upgrade, but here we need somthing that uses the isSameItemSameTag function from the ItemStack class.

-added functions similar to what is in the Inventory class of minecraft for this purpose of finding the slot index using the isSameItemSameTags function and then extracting/removing the item from the slot index like what is done on the player inventory
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.

2 participants