mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-25 04:58:33 +01:00
parent
94d38e5a81
commit
548050b6e9
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
package de.ellpeck.naturesaura.items;
|
||||
|
||||
import de.ellpeck.naturesaura.NaturesAura;
|
||||
import de.ellpeck.naturesaura.api.NaturesAuraAPI;
|
||||
import de.ellpeck.naturesaura.entities.EntityEffectInhibitor;
|
||||
import de.ellpeck.naturesaura.reg.IColorProvidingItem;
|
||||
|
@ -34,7 +33,7 @@ public class ItemEffectPowder extends ItemImpl implements IColorProvidingItem {
|
|||
}
|
||||
|
||||
public static ItemStack setEffect(ItemStack stack, ResourceLocation effect) {
|
||||
stack.getOrCreateTag().putString("effect", effect.toString());
|
||||
stack.getOrCreateTag().putString("effect", effect != null ? effect.toString() : "");
|
||||
return stack;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue