Remove baby entity data from changed water animals

This commit is contained in:
Nassim Jahnke 2024-08-28 16:08:11 +02:00
parent 4bcc213f1b
commit 6b690a0218
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 4 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public final class Protocol1_21_2To1_21 extends BackwardsProtocol<ClientboundPac
}
private void storeTags(final PacketWrapper wrapper) {
tagRewriter.getGenericHandler().handle(wrapper);
tagRewriter.handleGeneric(wrapper);
wrapper.resetReader();
wrapper.user().get(ItemTagStorage.class).readItemTags(wrapper);
}

View File

@ -182,6 +182,9 @@ public final class EntityPacketRewriter1_21_2 extends EntityRewriter<Clientbound
registerBlockStateHandler(EntityTypes1_20_5.ABSTRACT_MINECART, 11);
filter().type(EntityTypes1_20_5.SALMON).removeIndex(17); // Data type
filter().type(EntityTypes1_20_5.DOLPHIN).removeIndex(16); // Baby
filter().type(EntityTypes1_20_5.GLOW_SQUID).removeIndex(16); // Baby
filter().type(EntityTypes1_20_5.SQUID).removeIndex(16); // Baby
}
@Override