fix: got rid of the black particles & hitbox bug by replacing area effect clouds with interaction entities

This commit is contained in:
Willem
2025-06-05 14:35:13 +02:00
parent 4e1cd6cbf7
commit 66773cace0

View File

@@ -116,6 +116,11 @@ public class JavaAddEntityTranslatorReplace extends PacketTranslator<Clientbound
} else {
return;
}
} else if (packet.getType() == EntityType.AREA_EFFECT_CLOUD) {
/* todo this fix gets rid of aec's in general, we should see if it's a meg aec somehow */
definition = Registries.ENTITY_DEFINITIONS.get(EntityType.INTERACTION);
entity = definition.factory().create(session, packet.getEntityId(), session.getEntityCache().getNextEntityId().incrementAndGet(),
packet.getUuid(), definition, position, motion, yaw, pitch, headYaw);
} else {
entity = definition.factory().create(session, packet.getEntityId(), session.getEntityCache().getNextEntityId().incrementAndGet(),
packet.getUuid(), definition, position, motion, yaw, pitch, headYaw);