9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-28 19:19:13 +00:00

Fix it not being possible to creative-middle-click-clone item stacks from un-editable inventory snapshot views, close #44

This commit is contained in:
William
2022-10-12 21:34:09 +01:00
parent 4fddbc2b32
commit 5b8de7967b

View File

@@ -579,7 +579,8 @@ public class BukkitPlayer extends OnlineUser {
final StorageBuilder guiBuilder = Gui.storage()
.title(title.toComponent())
.rows(Math.max(minimumRows, (int) Math.ceil(itemCount / 9.0)))
.disableAllInteractions();
.disableAllInteractions()
.enableOtherActions();
final StorageGui gui = editable ? guiBuilder.enableAllInteractions().create() : guiBuilder.create();
for (int i = 0; i < itemCount; i++) {
if (items[i] != null) {