EverestAPI / EverestAPI/Everest
DecalRegistry.AddPropertyHandler not adding the property
- Dominant language
- C#
- Stars
- 516
- Forks
- 106
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 5
Description
### My mods and Everest install are up to date
Yes
### I have recreated the bug with only Everest OR a minimum number of mods enabled
Yes
### Describe the bug
I am attempting to create a custom Decal Registry property, however the delegate is not running no matter what I do. I have asked basically everywhere i could think of but nobody who has tried to help has been able to figure out the problem.
Unsure if this is an issue with Everest or my skill.
### Steps to reproduce
`Load() function`
```cs
public override void Load() {
//Logger.Log(LogLevel.Info, "ReactiveRange", "Hooked Decal.Update");
On.Celeste.Decal.Update += updateReactiveRange;
DecalRegistry.AddPropertyHandler("ReactiveDecals_Pulse", delegate(Decal decal, System.Xml.XmlAttributeCollection attrs)
{
Logger.Log("ReactiveDecals", "pleaseworkpleaseworkpleasework"); // this doesn't print to the log.txt
});
}
```
`DecalRegistry.xml`
```xml
```
### Expected behavior
If I understand it properly, when I add the `ReactiveDecals_Pulse` property to a decal, it should run the delegate, and print `pleaseworkpleaseworkpleasework` to the log.txt.
### Operating System
EndeavourOS
### Everest Version
4465
### Mods required to reproduce
_No response_
### Additional context
[log.txt](https://github.com/EverestAPI/Everest/files/13756888/log.txt)
Contributor guide
Assessment
This issue has not been assessed yet.