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

FIx Large Miner not working with ME Output Bus and working area text with screwdriver while not in Chunk Mode #2513

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Synthitic
Copy link
Contributor

@Synthitic Synthitic commented Jul 2, 2024

What

The large miner would say its inventory was full when using ME Output bus despite it having infinite size.
Using the screwdriver when it was not in chunk mode would give an unlocalized string.

Implementation Details

Adds a check by slot limit. The implementation of having a method in IMiner to retrieve a stored boolean has little to no performance difference in my testing.
Changes the translation key to the right one.

Outcome

Fixes #2476
Fixes #2473

Additional Information

None

Potential Compatibility Issues

None to my knowledge.

@Synthitic Synthitic requested a review from a team as a code owner July 2, 2024 04:53
@Synthitic Synthitic changed the title FIx Large Miner not working with ME Output Bus FIx Large Miner not working with ME Output Bus and working area text with screwdriver while not in Chunk Mode Jul 2, 2024
@ALongStringOfNumbers ALongStringOfNumbers added the type: bug Something isn't working label Jul 3, 2024
@@ -282,7 +282,8 @@ private void mineAndInsertItems(NonNullList<ItemStack> blockDrops, WorldServer w
// If the block's drops can fit in the inventory, move the previously mined position to the block
// replace the ore block with cobblestone instead of breaking it to prevent mob spawning
// remove the ore block's position from the mining queue
if (GTTransferUtils.addItemsToItemHandler(metaTileEntity.getExportItems(), true, blockDrops)) {
if (GTTransferUtils.addItemsToItemHandler(metaTileEntity.getExportItems(), true, blockDrops) ||
metaTileEntity.getExportItems().getSlotLimit(0) == Integer.MAX_VALUE - 1) { // Check for ME Output
Copy link
Member

Choose a reason for hiding this comment

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

Can this result in voiding?

Also why does the ME output bus work with AbstractRecipeLogic but not here? They both do the same check with the same method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
3 participants