Jump to content

Doesn't support new cupboard after update

Closed 3.4.3 3.4.4

I have a semi fix.

Replace;

private void OnEntityBuilt(Planner plan, GameObject go)
        {
            if (plan == null || go?.name == "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab") return;
            BuildingPrivlidge priv = plan.GetBuildingPrivilege();
            if (priv != null)
            {

With;

private void OnEntityBuilt(Planner plan, GameObject go)
        {
            if (plan == null ||
            go?.name == "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab" ||
            go?.name == "assets/prefabs/deployable/tool cupboard/retro/cupboard.tool.retro.deployed.prefab"
            ) return;
            BuildingPrivlidge priv = plan.GetBuildingPrivilege();
            if (priv != null)
            {

In the RaidProtection.cs file.

This only half fixes it though, it'll allow the new tc they've added to function but the Upkeep and Protection UI buttons will be missing from its inventory for some reason. BUT if you have a plugin like BetterTC which allows you to switch between the vanilla tc and new tc model then you can switch to the vanilla one, add protection then switch back to the new model and your base is safe. The Upkeep and Protection UI buttons only seem to like the vanilla tc for some reason.

(Shoutout to Mabel for helping me get this far, hopefully a proper fix can get implemented soon)

Edited by Butters
  • Like 2

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.