KayelGee / control-concealer

MIT License
1 stars 1 forks source link

Incompatibility with the button added by Parallaxia #9

Open linxcat opened 2 years ago

linxcat commented 2 years ago

Every time I enter my game, or refresh, I receive a flood of errors: Control concealer - Your controls don't match the saved controls. Some controls couldn't be found look at the console for more information! Start edit mode and end it to save and to suppress this message.

Looking the console, it looks like every toast popup is for the same error:

Control concealer | couldn't find:  
{name: "Parallaxia", title: "Irreversibly de-parallaxalize all Parallaxia tiles in the layer", icon: "fab fa-centos", button: true}
button: true
icon: "fab fa-centos"
name: "Parallaxia"
title: "Irreversibly de-parallaxalize all Parallaxia tiles in the layer"

It is only ever the parallaxia button that breaks it. Disabling the Parallaxia module, saving, and then open and closing edit mode to save the buton not being there any more prevents the issue from happening.

My guess is a race condition? The button isn't added to the code yet when CC loads and tries to find it based on the saved content?

KayelGee commented 2 years ago

This is probably another module that adds their controls after the renderSceneControls hook #8 I haven't got a solution yet so this'll stay open for now.