- Changed the growth behavior of the crystals
- Fixed Potion getting for various methods - Started work on crystal automation ritual - Finished first iteration of the iterator of AreaDescriptor
This commit is contained in:
parent
78ed6a18e4
commit
f0730791f7
20 changed files with 298 additions and 109 deletions
|
@ -6,6 +6,7 @@ import WayofTime.bloodmagic.api.livingArmour.LivingArmourUpgrade;
|
|||
import WayofTime.bloodmagic.util.ChatUtil;
|
||||
import WayofTime.bloodmagic.util.helper.TextHelper;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.MobEffects;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
|
@ -27,12 +28,12 @@ public class LivingArmourUpgradePoisonResist extends LivingArmourUpgrade
|
|||
@Override
|
||||
public void onTick(World world, EntityPlayer player, ILivingArmour livingArmour)
|
||||
{
|
||||
if (player.isPotionActive(Potion.getPotionFromResourceLocation("poison")) && poisonCooldown <= 0)
|
||||
if (player.isPotionActive(MobEffects.poison) && poisonCooldown <= 0)
|
||||
{
|
||||
PotionEffect eff = player.getActivePotionEffect(Potion.getPotionFromResourceLocation("poison"));
|
||||
PotionEffect eff = player.getActivePotionEffect(MobEffects.poison);
|
||||
if (eff.getAmplifier() <= poisonMaxCure[this.level])
|
||||
{
|
||||
player.removePotionEffect(Potion.getPotionFromResourceLocation("poison"));
|
||||
player.removePotionEffect(MobEffects.poison);
|
||||
poisonCooldown = poisonCooldownTime[this.level];
|
||||
|
||||
ChatUtil.sendNoSpam(player, TextHelper.localize(chatBase + "poisonRemove"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue