Skip to content

Commit

Permalink
fix: unable to override createInv. method.
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-cskn committed Sep 1, 2023
1 parent 53d9769 commit ca8c19c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/mc/obliviate/inventory/Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ private boolean checkContainsInt(int i, Iterable<Integer> ints) {
* @param title Requested inventory title.
* @return Created inventory.
*/
private Inventory createInventory(InventoryHolder owner, int size, String title) {
protected Inventory createInventory(InventoryHolder owner, int size, String title) {
return Bukkit.createInventory(owner, size, title);
}

Expand All @@ -448,7 +448,7 @@ private Inventory createInventory(InventoryHolder owner, int size, String title)
* @param title Requested inventory title.
* @return Created inventory.
*/
private Inventory createInventory(InventoryHolder owner, InventoryType type, String title) {
protected Inventory createInventory(InventoryHolder owner, InventoryType type, String title) {
return Bukkit.createInventory(owner, type, title);
}

Expand Down

0 comments on commit ca8c19c

Please sign in to comment.