Adjust harmful effect so it doesn't fully kill you

This commit is contained in:
Sollace 2019-02-01 10:53:06 +02:00
parent 3d4f9c079b
commit d838849df7

View file

@ -252,7 +252,7 @@ class PlayerCapabilities implements IPlayer {
} }
if (player.world.getDifficulty() != EnumDifficulty.PEACEFUL && player.world.rand.nextInt(20) == 0) { if (player.world.getDifficulty() != EnumDifficulty.PEACEFUL && player.world.rand.nextInt(20) == 0) {
player.addPotionEffect(new PotionEffect(UEffects.FOOD_POISONING, 300, 2, true, true)); player.addPotionEffect(new PotionEffect(UEffects.FOOD_POISONING, 3, 2, true, true));
} }
player.addPotionEffect(new PotionEffect(MobEffects.WEAKNESS, 2000, 2, true, true)); player.addPotionEffect(new PotionEffect(MobEffects.WEAKNESS, 2000, 2, true, true));