mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 03:43:30 +01:00
return an empty string on getLegacyStringSubtypeInfo for effect powders with no effect
closes #363
This commit is contained in:
parent
7dd63845af
commit
27f51b39dd
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ public class JEINaturesAuraPlugin implements IModPlugin {
|
|||
|
||||
@Override
|
||||
public String getLegacyStringSubtypeInfo(ItemStack ingredient, UidContext context) {
|
||||
return ItemEffectPowder.getEffect(ingredient).toString();
|
||||
var effect = ItemEffectPowder.getEffect(ingredient);
|
||||
return effect != null ? effect.toString() : "";
|
||||
}
|
||||
});
|
||||
registration.registerSubtypeInterpreter(VanillaTypes.ITEM_STACK, ModItems.AURA_BOTTLE, new ISubtypeInterpreter<>() {
|
||||
|
|
Loading…
Reference in a new issue