Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ public ItemStack quickMoveStack(Player player, int index) {
}

@Override
public void clicked(int i, int j, ClickType clickType, Player player) {
public void clicked(int slotIndex, int button, ClickType clickType, Player player) {
if (viewOnly) {
if (clickType == ClickType.QUICK_CRAFT) {
sendAllDataToRemote();
}
return;
}
super.clicked(i, j, clickType, player);
super.clicked(slotIndex, button, clickType, player);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public OpenInventoryMenu(
}

@Override
public void clicked(int i, int j, ClickType clickType, Player player) {
public void clicked(int slotIndex, int button, ClickType clickType, Player player) {
if (viewOnly) {
if (clickType == ClickType.QUICK_CRAFT) {
sendAllDataToRemote();
}
return;
}
super.clicked(i, j, clickType, player);
super.clicked(slotIndex, button, clickType, player);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public ServerPlayer getOwnerHandle() {
@Override
public org.bukkit.inventory.Inventory getBukkitInventory() {
if (bukkitEntity == null) {
bukkitEntity = new OpenPlayerInventory(this);
bukkitEntity = new OpenPlayerInventory(factory, this);
}
return bukkitEntity;
}
Expand Down
Loading
Loading