Creating an entity different in client/server

I’m using the Lua console in Debug Tools to try to figure out why my code isn’t working, and it seems that when an entity is created on the server, it loads extended component data, but when it’s created on the client, it doesn’t.

Here’s what I’m working with: I monkey-patched portal_component to have an additional boolean field: horizontal. This loads fine in the server, but not in the client.

Why is this, and what can I do about it?

Ah-hah! I have to monkey-patch it in the client_init_script as well as the server_init_script!