Updated Upstream (Bukkit/CraftBukkit)

Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
79e39671 SPIGOT-7034: Add methods for set/get instrument in Goat Horn

CraftBukkit Changes:
4768df736 SPIGOT-7034: Add methods for set/get instrument in Goat Horn
941d7e954 SPIGOT-7225: FireworkMeta#getPower() can throw a NullPointerException for items with no power set
This commit is contained in:
byquanton 2023-01-09 17:49:06 +01:00
parent 8f79964ecd
commit e52ed2c588
3 changed files with 2 additions and 21 deletions

View File

@ -1,19 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
Date: Thu, 29 Dec 2022 11:16:05 -0500
Subject: [PATCH] Return 0 by default for FireworkMeta
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaFirework.java
@@ -0,0 +0,0 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
@Override
public int getPower() {
- return this.power;
+ return java.util.Objects.requireNonNullElse(this.power, 0); // Paper
}
@Override

@ -1 +1 @@
Subproject commit d352d96500fbd215d06f4561f374faabb1c0b1fd
Subproject commit 79e3967192566bce29eb6688fc3abafa69a2be24

@ -1 +1 @@
Subproject commit 397c5557cac66a242573cec11a2966d812b710d2
Subproject commit 4768df7366ef10e808b31e8b167b21913822f076