mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
20 lines
950 B
Diff
20 lines
950 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Tue, 23 Jul 2019 06:50:55 -0500
|
|
Subject: [PATCH] Allow inventory resizing
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryType.java b/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
index 7184f80899206bedeac387e9f8a35482801efd4b..e4197c89c04b91732ce96981f8df0a0bdaee24ce 100644
|
|
--- a/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
+++ b/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
@@ -164,7 +164,7 @@ public enum InventoryType {
|
|
SMITHING_NEW(4, "Upgrade Gear", MenuType.SMITHING),
|
|
;
|
|
|
|
- private final int size;
|
|
+ private int size; public void setDefaultSize(int size) { this.size = size; } // Purpur - remove final and add setter
|
|
private final String title;
|
|
private final MenuType menuType;
|
|
private final boolean isCreatable;
|