mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: 12dec20 Bump paerweight to 1.1.7 e33ed89 Get short commit ref using a more proper method 7d6147d Remove now unneeded patch due to paperweight 1.1.7 e72fa41 Update task dependency for includeMappings so the new task isn't skipped 0ad5526 Trim whitspace off of git hash (oops) Tuinity Changes: e878ba9 Update paper 2bd2849 Bring back fix codec spam patch
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
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 e1e7f45fd0f65d0874dd0698da436c7ac2e7951b..a31841b93964338c9325631dbfa59b3cad77b4f1 100644
|
|
--- a/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
+++ b/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
@@ -136,7 +136,7 @@ public enum InventoryType {
|
|
COMPOSTER(1, "Composter")
|
|
;
|
|
|
|
- private final int size;
|
|
+ private int size; // Purpur - remove final
|
|
private final String title;
|
|
private final boolean isCreatable;
|
|
|
|
@@ -163,6 +163,12 @@ public enum InventoryType {
|
|
this.defaultTitleComponent = net.kyori.adventure.text.Component.text(defaultTitle); // Paper - Adventure
|
|
}
|
|
|
|
+ // Purpur start
|
|
+ public void setDefaultSize(int size) {
|
|
+ this.size = size;
|
|
+ }
|
|
+ // Purpur end
|
|
+
|
|
public int getDefaultSize() {
|
|
return size;
|
|
}
|