From a1e5453e61058361e0ad2e400a4009798e21e842 Mon Sep 17 00:00:00 2001 From: thamid-gamer <60953955+thamid-gamer@users.noreply.github.com> Date: Thu, 30 Sep 2021 20:56:22 -0400 Subject: [PATCH] Use null for null resource pack prompts (#6572) --- patches/server/Complete-resource-pack-API.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Complete-resource-pack-API.patch b/patches/server/Complete-resource-pack-API.patch index c9f335393b..0d986f72d3 100644 --- a/patches/server/Complete-resource-pack-API.patch +++ b/patches/server/Complete-resource-pack-API.patch @@ -66,7 +66,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + Validate.notNull(hash, "Hash cannot be null"); + net.minecraft.network.chat.Component promptComponent = resourcePackPrompt != null ? + io.papermc.paper.adventure.PaperAdventure.asVanilla(resourcePackPrompt) : -+ new net.minecraft.network.chat.TextComponent(""); ++ null; + this.getHandle().sendTexturePack(url, hash, required, promptComponent); + } +