Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-10-03 08:21:06 +02:00
Fix suspicious stew NPEs
Dieser Commit ist enthalten in:
Ursprung
e97bbcc483
Commit
420f67752c
@ -148,9 +148,10 @@ public class ItemMappings implements DefinitionRegistry<ItemDefinition> {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!(mapping.getBedrockData() == data.getDamage() ||
|
if (!(mapping.getBedrockData() == data.getDamage() ||
|
||||||
// Make exceptions for potions, tipped arrows, firework stars, and goat horns, whose damage values can vary
|
// Make exceptions for potions, tipped arrows, firework stars, goat horns, and suspicious stews, whose damage values can vary
|
||||||
(mapping.getJavaItem() instanceof PotionItem || mapping.getJavaItem() == Items.ARROW
|
(mapping.getJavaItem() instanceof PotionItem || mapping.getJavaItem() == Items.ARROW
|
||||||
|| mapping.getJavaItem() == Items.FIREWORK_STAR || mapping.getJavaItem() == Items.GOAT_HORN))) {
|
|| mapping.getJavaItem() == Items.FIREWORK_STAR || mapping.getJavaItem() == Items.GOAT_HORN
|
||||||
|
|| mapping.getJavaItem() == Items.SUSPICIOUS_STEW))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren