diff options
author | Yang Xizhi <60341015+GlodBlock@users.noreply.github.com> | 2021-12-16 19:58:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 12:58:53 +0100 |
commit | accbd5d9f4702f91bfa488fe9877dac253f3d8e0 (patch) | |
tree | f369a1c2a351ed91706bcaf5fbf685bba6b9c1b9 /src/main/java/gregtech/common/blocks/GT_Item_Machines.java | |
parent | fcfcbdf57a8e1bb4fe03d89a2351d6b64a8fab41 (diff) | |
download | GT5-Unofficial-accbd5d9f4702f91bfa488fe9877dac253f3d8e0.tar.gz GT5-Unofficial-accbd5d9f4702f91bfa488fe9877dac253f3d8e0.tar.bz2 GT5-Unofficial-accbd5d9f4702f91bfa488fe9877dac253f3d8e0.zip |
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
Diffstat (limited to 'src/main/java/gregtech/common/blocks/GT_Item_Machines.java')
-rw-r--r-- | src/main/java/gregtech/common/blocks/GT_Item_Machines.java | 8 |
1 files changed, 4 insertions, 4 deletions
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)); } } } |