aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/blocks/GT_Item_Machines.java
diff options
context:
space:
mode:
authorYang Xizhi <60341015+GlodBlock@users.noreply.github.com>2021-12-16 19:58:53 +0800
committerGitHub <noreply@github.com>2021-12-16 12:58:53 +0100
commitaccbd5d9f4702f91bfa488fe9877dac253f3d8e0 (patch)
treef369a1c2a351ed91706bcaf5fbf685bba6b9c1b9 /src/main/java/gregtech/common/blocks/GT_Item_Machines.java
parentfcfcbdf57a8e1bb4fe03d89a2351d6b64a8fab41 (diff)
downloadGT5-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.java8
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));
}
}
}