Skip to content

Commit

Permalink
Updated canvas in incorporated new api
Browse files Browse the repository at this point in the history
  • Loading branch information
NIkiIncredible committed Jul 18, 2024
1 parent a67449a commit cb3eaba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.ipvp.canvas.mask.BinaryMask;
import org.ipvp.canvas.mask.Mask;
import org.ipvp.canvas.paginate.PaginatedMenuBuilder;
import org.ipvp.canvas.paginate.PaginatedMenuTitles;
import org.ipvp.canvas.slot.ClickOptions;
import org.ipvp.canvas.slot.Slot;
import org.ipvp.canvas.slot.SlotSettings;
Expand Down Expand Up @@ -127,6 +128,10 @@ public void add(ItemStack itemStack, HandleResult handleResult) {
.item(itemStack).build());
}

public void titles(PaginatedMenuTitles titles) {
switcherInventoryPages = switcherInventoryPages.paginateMenuTitles(titles);
}

/**
* Adds a new menu modifier to the inventory.
*
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ allprojects {

//Internal API's
//Canvas is a spookly fork from another project. Will prop. have another namespace in the future to reslove conflicts with original
implementation 'org.ipvp:canvas:1.7.2'
implementation 'org.ipvp:canvas:1.7.3'

//NMS / Paper-API
paperweight.paperDevBundle(project.paper_version)
Expand Down

0 comments on commit cb3eaba

Please sign in to comment.