Fix wrong metadata method calls

This commit is contained in:
Christian 2021-12-22 23:00:50 +01:00
parent 6cc0ade409
commit 0cdc017c68
3 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ public class LivingEntityMeta extends EntityMeta {
}
public void setArrowCount(int value) {
super.metadata.getIndex(OFFSET + 4, Metadata.VarInt(value));
super.metadata.setIndex(OFFSET + 4, Metadata.VarInt(value));
}
public int getHealthAddedByAbsorption() {
@ -81,7 +81,7 @@ public class LivingEntityMeta extends EntityMeta {
}
public void setHealthAddedByAbsorption(int value) {
super.metadata.getIndex(OFFSET + 5, Metadata.VarInt(value));
super.metadata.setIndex(OFFSET + 5, Metadata.VarInt(value));
}
@Nullable

View File

@ -25,7 +25,7 @@ public class PigMeta extends AnimalMeta {
}
public void setTimeToBoost(int value) {
super.metadata.getIndex(OFFSET + 1, Metadata.VarInt(value));
super.metadata.setIndex(OFFSET + 1, Metadata.VarInt(value));
}
}

View File

@ -19,7 +19,7 @@ public class EnderDragonMeta extends MobMeta {
}
public void setPhase(@NotNull Phase value) {
super.metadata.getIndex(OFFSET, Metadata.VarInt(value.ordinal()));
super.metadata.setIndex(OFFSET, Metadata.VarInt(value.ordinal()));
}
public enum Phase {