Fix firework stars being unobtainable from the creative menu

This commit is contained in:
Camotoy 2021-09-22 19:27:49 -04:00
parent 82bb6ad61f
commit 27a17ff183
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -121,8 +121,9 @@ public class ItemMappings {
} }
} else { } else {
if (!(mapping.getBedrockData() == data.getDamage() || if (!(mapping.getBedrockData() == data.getDamage() ||
// Make exceptions for potions and tipped arrows, whose damage values can vary // Make exceptions for potions, tipped arrows, and firework stars, whose damage values can vary
(mapping.getJavaIdentifier().endsWith("potion") || mapping.getJavaIdentifier().equals("minecraft:arrow")))) { (mapping.getJavaIdentifier().endsWith("potion") || mapping.getJavaIdentifier().equals("minecraft:arrow")
|| mapping.getJavaIdentifier().equals("minecraft:firework_star")))) {
continue; continue;
} }
} }