Improvements to Timer settings and AutoEat meta
This commit is contained in:
parent
eb550f6b7f
commit
b2e2cd276d
2 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue