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

Allow items to be unlocked in recipe menu #3628

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import io.github.thebusybiscuit.slimefun4.core.multiblocks.MultiBlock;
import io.github.thebusybiscuit.slimefun4.core.multiblocks.MultiBlockMachine;
import io.github.thebusybiscuit.slimefun4.core.services.localization.SlimefunLocalization;
import io.github.thebusybiscuit.slimefun4.core.services.sounds.SoundEffect;
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
import io.github.thebusybiscuit.slimefun4.implementation.tasks.AsyncRecipeChoiceTask;
import io.github.thebusybiscuit.slimefun4.utils.ChatUtils;
Expand Down Expand Up @@ -305,9 +306,9 @@ private void displaySlimefunItem(ChestMenu menu, ItemGroup itemGroup, Player p,
Slimefun.getLocalization().sendMessage(pl, "guide.cheat.no-multiblocks");
} else {
ItemStack clonedItem = sfitem.getItem().clone();

nt(clonedItem.ge
Sfiguz7 marked this conversation as resolved.
Show resolved Hide resolved
if (action.isShiftClicked()) {
clonedItem.setAmount(clonedItem.getMaxStackSize());
clonedItem.setAmoutMaxStackSize());
WalshyDev marked this conversation as resolved.
Show resolved Hide resolved
}

pl.getInventory().addItem(clonedItem);
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.