mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-29 19:41:47 +01:00
Merge pull request #546 from BurgerbudeORG/fix/entity-meta
Fix entity metadata
This commit is contained in:
commit
e4a141be31
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user