From accbd5d9f4702f91bfa488fe9877dac253f3d8e0 Mon Sep 17 00:00:00 2001 From: Yang Xizhi <60341015+GlodBlock@users.noreply.github.com> Date: Thu, 16 Dec 2021 19:58:53 +0800 Subject: reduce the amplifier (#813) it is unreasonable to make player starve to die in dozens of seconds with full hunger bar fix https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/9156 --- src/main/java/gregtech/common/blocks/GT_Item_Machines.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/gregtech/common/blocks/GT_Item_Machines.java b/src/main/java/gregtech/common/blocks/GT_Item_Machines.java index fb8a9cbe89..74a53c1743 100644 --- a/src/main/java/gregtech/common/blocks/GT_Item_Machines.java +++ b/src/main/java/gregtech/common/blocks/GT_Item_Machines.java @@ -254,10 +254,10 @@ public class GT_Item_Machines extends ItemBlock implements IFluidContainerItem { double tmp = (tFluidAmount - tMiddlePoint) / tSmoothingCoefficient; tLasing = (int) (Math.exp(tmp) / (Math.exp(tmp) + Math.exp(-tmp)) * tMaxLastingTime); } - tPlayer.addPotionEffect(new PotionEffect(Potion.hunger.id, tLasing, 4)); - tPlayer.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, tLasing, 4)); - tPlayer.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, tLasing, 4)); - tPlayer.addPotionEffect(new PotionEffect(Potion.weakness.id, tLasing, 4)); + tPlayer.addPotionEffect(new PotionEffect(Potion.hunger.id, tLasing, 1)); + tPlayer.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, tLasing, 1)); + tPlayer.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, tLasing, 1)); + tPlayer.addPotionEffect(new PotionEffect(Potion.weakness.id, tLasing, 1)); } } } -- cgit