Fix issues with creaking entity data

Fixes #904
This commit is contained in:
Nassim Jahnke 2024-10-30 10:20:56 +01:00
parent 562651cd9d
commit 16aa6a51a2
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 2 additions and 8 deletions

View File

@ -587,12 +587,6 @@ public final class EntityPacketRewriter1_21_2 extends EntityRewriter<Clientbound
filter().type(EntityTypes1_21_2.CREAKING).cancel(17); // Active
filter().type(EntityTypes1_21_2.CREAKING).cancel(16); // Can move
filter().type(EntityTypes1_21_2.CREAKING_TRANSIENT).handler((event, data) -> {
if (event.index() > 7) {
event.cancel();
}
});
filter().type(EntityTypes1_21_2.ABSTRACT_BOAT).addIndex(11); // Boat type
filter().type(EntityTypes1_21_2.SALMON).removeIndex(17); // Data type
filter().type(EntityTypes1_21_2.AGEABLE_WATER_CREATURE).removeIndex(16); // Baby
@ -609,7 +603,7 @@ public final class EntityPacketRewriter1_21_2 extends EntityRewriter<Clientbound
public void onMappingDataLoaded() {
mapTypes();
mapEntityTypeWithData(EntityTypes1_21_2.CREAKING, EntityTypes1_21_2.WARDEN).jsonName();
mapEntityTypeWithData(EntityTypes1_21_2.CREAKING_TRANSIENT, EntityTypes1_21_2.TEXT_DISPLAY);
mapEntityTypeWithData(EntityTypes1_21_2.CREAKING, EntityTypes1_21_2.WARDEN).tagName();
mapEntityTypeWithData(EntityTypes1_21_2.CREAKING_TRANSIENT, EntityTypes1_21_2.WARDEN).tagName();
}
}