1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-10 09:20:28 +00:00
CC-Tweaked/projects
Jonathan Coates a9191a4d4e
Don't cache the client monitor
When rendering non-origin monitors, we would fetch the origin monitor,
read its client state, and then cache that on the current monitor to
avoid repeated lookups.

However, if the origin monitor is unloaded/removed on the client, and
then loaded agin, this cache will be not be invalidated, causing us to
render both the old and new monitor!

I think the correct thing to do here is cache the origin monitor. This
allows us to check when the origin monitor has been removed, and
invalidate the cache if needed.

However, I'm wary of any other edge cases here, so for now we do
something much simpler, and remove the cache entirely. This does mean
that monitors now need to perform extra block entity lookups, but the
performance cost doesn't appear to be too bad.

Fixes #1741
2024-03-10 10:57:56 +00:00
..
common Don't cache the client monitor 2024-03-10 10:57:56 +00:00
common-api Move WiredNode default methods to the impl 2024-03-10 10:00:52 +00:00
core Move WiredNode default methods to the impl 2024-03-10 10:00:52 +00:00
core-api Allow ILuaAPIs to be exposed as a module 2024-02-05 18:53:24 +00:00
fabric Reschedule block entities when chunks are loaded 2024-02-26 19:25:38 +00:00
fabric-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
forge Reschedule block entities when chunks are loaded 2024-02-26 19:25:38 +00:00
forge-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
lints Flesh out MemoryMount into a writable mount 2023-09-29 22:15:23 +01:00
standalone Allow local domains in the standalone emulator 2023-12-20 17:43:08 +00:00
web Don't propagate redstone when blink/label changes 2024-03-06 18:59:38 +00:00
ARCHITECTURE.md Add a standalone CC:T UI 2023-10-28 17:58:11 +01:00