Merge pull request #143 from vemerion/master

Fix cubozoa and end fish getting smaller after every reload
This commit is contained in:
paulevsGitch 2021-04-19 21:02:43 +03:00 committed by GitHub
commit a802b4e77d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ public class CubozoaEntity extends SchoolingFishEntity {
public void writeCustomDataToTag(CompoundTag tag) { public void writeCustomDataToTag(CompoundTag tag) {
super.writeCustomDataToTag(tag); super.writeCustomDataToTag(tag);
tag.putByte("Variant", (byte) getVariant()); tag.putByte("Variant", (byte) getVariant());
tag.putByte("Scale", (byte) getScale()); tag.putByte("Scale", dataTracker.get(SCALE));
} }
@Override @Override

View file

@ -69,7 +69,7 @@ public class EndFishEntity extends SchoolingFishEntity {
public void writeCustomDataToTag(CompoundTag tag) { public void writeCustomDataToTag(CompoundTag tag) {
super.writeCustomDataToTag(tag); super.writeCustomDataToTag(tag);
tag.putByte("Variant", (byte) getVariant()); tag.putByte("Variant", (byte) getVariant());
tag.putByte("Scale", (byte) getScale()); tag.putByte("Scale", dataTracker.get(SCALE));
} }
@Override @Override