Fix Axolotl Variant typo

This commit is contained in:
libraryaddict 2021-07-29 10:36:16 +12:00
parent aa709c791d
commit 41187cd35d
2 changed files with 6 additions and 6 deletions

View File

@ -112,7 +112,7 @@ public class MetaIndex<Y> {
public static MetaIndex<Byte> ARROW_PIERCE_LEVEL = new MetaIndex<>(ArrowWatcher.class, 2, (byte) 0); public static MetaIndex<Byte> ARROW_PIERCE_LEVEL = new MetaIndex<>(ArrowWatcher.class, 2, (byte) 0);
@NmsAddedIn(NmsVersion.v1_17) @NmsAddedIn(NmsVersion.v1_17)
public static MetaIndex<Integer> AXOLOTL_VARIENT = new MetaIndex<>(AxolotlWatcher.class, 0, 0); public static MetaIndex<Integer> AXOLOTL_VARIANT = new MetaIndex<>(AxolotlWatcher.class, 0, 0);
@NmsAddedIn(NmsVersion.v1_17) @NmsAddedIn(NmsVersion.v1_17)
public static MetaIndex<Boolean> AXOLOTL_PLAYING_DEAD = new MetaIndex<>(AxolotlWatcher.class, 1, false); public static MetaIndex<Boolean> AXOLOTL_PLAYING_DEAD = new MetaIndex<>(AxolotlWatcher.class, 1, false);

View File

@ -21,12 +21,12 @@ public class AxolotlWatcher extends AgeableWatcher {
sendData(MetaIndex.AXOLOTL_PLAYING_DEAD); sendData(MetaIndex.AXOLOTL_PLAYING_DEAD);
} }
public Axolotl.Variant getVarient() { public Axolotl.Variant getVariant() {
return Axolotl.Variant.values()[getData(MetaIndex.AXOLOTL_VARIENT)]; return Axolotl.Variant.values()[getData(MetaIndex.AXOLOTL_VARIANT)];
} }
public void setVarient(Axolotl.Variant varient) { public void setVariant(Axolotl.Variant variant) {
setData(MetaIndex.AXOLOTL_VARIENT, varient.ordinal()); setData(MetaIndex.AXOLOTL_VARIANT, variant.ordinal());
sendData(MetaIndex.AXOLOTL_VARIENT); sendData(MetaIndex.AXOLOTL_VARIANT);
} }
} }