Use null for null resource pack prompts (#6572)

This commit is contained in:
thamid-gamer 2021-09-30 20:56:22 -04:00
parent 5d7651e1b8
commit a1e5453e61

View File

@ -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);
+ }
+