Removed unused Spring Water potion effect code, fixed #37

This commit is contained in:
Adubbz 2013-08-04 14:01:11 +10:00
parent e0d0840d74
commit c66cfdfc52
2 changed files with 1 additions and 16 deletions

View file

@ -7,7 +7,6 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.Icon;
@ -75,26 +74,12 @@ public class BlockFluidSpringWater extends BlockFluidClassic
{
int meta = world.getBlockMetadata(x, y, z);
if (!world.isRemote)
{
if (entity instanceof EntityLivingBase)
{
((EntityLivingBase)entity).addPotionEffect(new PotionEffect(Potion.regeneration.id, 20));
}
if (entity instanceof EntityPlayer)
{
if (world.rand.nextInt(150) == 0)
{
EntityPlayer player = (EntityPlayer)entity;
if (player.getFoodStats().needFood())
{
//((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.field_76443_y.id, 1));
}
}
}
}
}

View file

@ -120,7 +120,7 @@ public class ItemBOPFood extends ItemFood
for (Field f : fields)
{
if (f.getName().equals("foodLevel") || f.getName().equals("bB"))
if (f.getName().equals("foodLevel") || f.getName().equals("a"))
{
flfield = f;
break;