mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Merge pull request #3306 from svr333/SfCheatShiftRightClick
Co-authored-by: Daniel Walsh <walshydev@gmail.com>
This commit is contained in:
commit
6c6ed306f3
@ -313,7 +313,13 @@ public class SurvivalSlimefunGuide implements SlimefunGuideImplementation {
|
|||||||
if (sfitem instanceof MultiBlockMachine) {
|
if (sfitem instanceof MultiBlockMachine) {
|
||||||
Slimefun.getLocalization().sendMessage(pl, "guide.cheat.no-multiblocks");
|
Slimefun.getLocalization().sendMessage(pl, "guide.cheat.no-multiblocks");
|
||||||
} else {
|
} else {
|
||||||
pl.getInventory().addItem(sfitem.getItem().clone());
|
ItemStack clonedItem = sfitem.getItem().clone();
|
||||||
|
|
||||||
|
if (action.isShiftClicked()) {
|
||||||
|
clonedItem.setAmount(clonedItem.getMaxStackSize());
|
||||||
|
}
|
||||||
|
|
||||||
|
pl.getInventory().addItem(clonedItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception | LinkageError x) {
|
} catch (Exception | LinkageError x) {
|
||||||
|
Loading…
Reference in New Issue
Block a user