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
|
@Client
|
||||||
public class Timer extends Feature {
|
public class Timer extends Feature {
|
||||||
|
|
||||||
|
@Config("Toggle On Leave")
|
||||||
|
@Description("Disables Timer on Leave.")
|
||||||
|
boolean destroy;
|
||||||
@Config("Multiplier")
|
@Config("Multiplier")
|
||||||
@Range("0.05..7.5")
|
@Range("0.05..7.5")
|
||||||
public float m = 0.5f;
|
public float m = 0.5f;
|
||||||
|
@ -41,7 +44,9 @@ public class Timer extends Feature {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPlayerDestroy(PlayerDestroyEvent event) {
|
public void onPlayerDestroy(PlayerDestroyEvent event) {
|
||||||
toggle();
|
if(destroy) {
|
||||||
|
toggle();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class AutoEat extends Feature {
|
||||||
@Override
|
@Override
|
||||||
public void onEveryTick() {
|
public void onEveryTick() {
|
||||||
if(enabled) {
|
if(enabled) {
|
||||||
text = this + "§7 [" + (eating ? "ACTIVE" : "INACTIVE") + "]";
|
text = this + "§7 [" + (eating ? "EATING" : "IDLE") + "]";
|
||||||
} else {
|
} else {
|
||||||
text = toString();
|
text = toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue