Merge pull request #84 from HugoDaBosss/patch-4

Fix animals appearing as babies instead of parents
This commit is contained in:
Myles 2016-03-03 12:56:37 +00:00
commit 624595e9f6

View File

@ -86,7 +86,10 @@ public class MetadataRewriter {
PacketUtil.writeString((String) value, output);
break;
case Boolean:
output.writeBoolean(((Byte) value).byteValue() != 0);
if(metaIndex == MetaIndex.AGEABLE_AGE)
output.writeBoolean(((Byte) value).byteValue() < 0);
else
output.writeBoolean(((Byte) value).byteValue() != 0);
break;
case Slot:
PacketUtil.writeItem(value, output);