Added an option to toggle first-person magic

This commit is contained in:
Sollace 2018-06-10 09:37:15 +02:00
parent ca62866e95
commit 334e768166
3 changed files with 5 additions and 2 deletions

View file

@ -20,12 +20,14 @@ public class PonyConfig extends SensibleConfig implements Exposable {
@Expose public boolean snuzzles = true;
@Expose public boolean hd = true;
@Expose public boolean showscale = true;
@Expose public boolean fpsmagic = true;
public enum PonySettings implements Setting {
SIZES,
SNUZZLES,
HD,
SHOWSCALE;
SHOWSCALE,
FPSMAGIC;
}
@Expose public boolean villagers = true;

View file

@ -68,7 +68,7 @@ public class LevitatingItemRenderer {
pushMatrix();
boolean doMagic = pony.getMetadata().hasMagic();
boolean doMagic = MineLittlePony.getConfig().fpsmagic && pony.getMetadata().hasMagic();
if (doMagic) {
setupPerspective(entity, stack, left);

View file

@ -8,6 +8,7 @@ minelp.options.hd=Enable MineLP skin server
minelp.options.sizes=Allow all different sizes of pony
minelp.options.snuzzles=Display snuzzles on ponies
minelp.options.showscale=Use show-accurate scaling
minelp.options.fpsmagic=Ponies use magic in first-person
minelp.mobs.title=Mob Settings
minelp.mobs.villagers=Ponify villagers