So I have mod which adds more chests (same as normal chest just different look). It seems to work for hosts but clients crash with this error:
The code involving the widget(It's at the bottom):
This mod was done a long time ago, so I'm not sure if anything changed or if it always had this issue. I'm just trying to fix it so I don't keep getting comments to fix it.
This piece of code
local containers = GLOBAL.require("containers")local oldwidgetsetup = containers.widgetsetupcontainers.widgetsetup = function(container, prefab) oldwidgetsetup(container, prefab)end
is completely redundant.
Clients construct container widgets doing this
Therefore, they look for the widget referenced as, for example, foodchest, when opening a foodchest.
foodchest widget doesn't exist, only treasurechest does (whic