mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: fcbeac8a [CI-SKIP] Readme update (#3702) 824f8086 Bandaid italic legacy serialization #3757 (#3760) Tuinity Changes: 9f21359: Re-add optimise collision checking in player move packet handling 1152054: Revert player move packet optimisation ef0a6c4: Optimise collision checking in player move packets
33 lines
1.0 KiB
Diff
33 lines
1.0 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 b59fec1a..e3b77f56 100644
|
|
--- a/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
+++ b/src/main/java/org/bukkit/event/inventory/InventoryType.java
|
|
@@ -132,7 +132,7 @@ public enum InventoryType {
|
|
STONECUTTER(2, "Stonecutter")
|
|
;
|
|
|
|
- private final int size;
|
|
+ private int size; // Purpur - remove final
|
|
private final String title;
|
|
private final boolean isCreatable;
|
|
|
|
@@ -146,6 +146,12 @@ public enum InventoryType {
|
|
this.isCreatable = isCreatable;
|
|
}
|
|
|
|
+ // Purpur start
|
|
+ public void setDefaultSize(int size) {
|
|
+ this.size = size;
|
|
+ }
|
|
+ // Purpur end
|
|
+
|
|
public int getDefaultSize() {
|
|
return size;
|
|
}
|