mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Fixed being able to feed gems with items of the wrong affinity
This commit is contained in:
parent
c06c6c6a05
commit
e6c0e4c14e
1 changed files with 3 additions and 1 deletions
|
@ -232,7 +232,9 @@ public class ItemSpell extends Item implements ICastable {
|
|||
public boolean canFeed(EntitySpell entity, ItemStack stack) {
|
||||
IMagicEffect effect = entity.getEffect();
|
||||
|
||||
return effect != null && effect.getName().equals(SpellRegistry.getKeyFromStack(stack));
|
||||
return effect != null
|
||||
&& entity.getAffinity() == getAffinity()
|
||||
&& effect.getName().equals(SpellRegistry.getKeyFromStack(stack));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue