mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-11 18:11:55 +01:00
Use null for null resource pack prompts (#6572)
This commit is contained in:
parent
5d7651e1b8
commit
a1e5453e61
@ -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);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user