Improvements to Timer settings and AutoEat meta

This commit is contained in:
Jess H 2024-05-28 04:11:13 +01:00
parent eb550f6b7f
commit b2e2cd276d
2 changed files with 7 additions and 2 deletions

View file

@ -17,6 +17,9 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
@Client
public class Timer extends Feature {
@Config("Toggle On Leave")
@Description("Disables Timer on Leave.")
boolean destroy;
@Config("Multiplier")
@Range("0.05..7.5")
public float m = 0.5f;
@ -41,8 +44,10 @@ public class Timer extends Feature {
}
public void onPlayerDestroy(PlayerDestroyEvent event) {
if(destroy) {
toggle();
}
}
@SubscribeEvent
public void onRender(RenderWorldLastEvent event) {

View file

@ -27,7 +27,7 @@ public class AutoEat extends Feature {
@Override
public void onEveryTick() {
if(enabled) {
text = this + "§7 [" + (eating ? "ACTIVE" : "INACTIVE") + "]";
text = this + "§7 [" + (eating ? "EATING" : "IDLE") + "]";
} else {
text = toString();
}