mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Use null for null resource pack prompts (#6572)
This commit is contained in:
@@ -66,7 +66,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ Validate.notNull(hash, "Hash cannot be null");
|
+ Validate.notNull(hash, "Hash cannot be null");
|
||||||
+ net.minecraft.network.chat.Component promptComponent = resourcePackPrompt != null ?
|
+ net.minecraft.network.chat.Component promptComponent = resourcePackPrompt != null ?
|
||||||
+ io.papermc.paper.adventure.PaperAdventure.asVanilla(resourcePackPrompt) :
|
+ io.papermc.paper.adventure.PaperAdventure.asVanilla(resourcePackPrompt) :
|
||||||
+ new net.minecraft.network.chat.TextComponent("");
|
+ null;
|
||||||
+ this.getHandle().sendTexturePack(url, hash, required, promptComponent);
|
+ this.getHandle().sendTexturePack(url, hash, required, promptComponent);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Reference in New Issue
Block a user