Plugin conflict with DrugBusiness OnItemSplitSolved

For anyone else running that plugin add the following code below into the cs file will resolve the conflict issue and allow Stack Modifier to handle everything properly.

You may also contact me on discord if you require assistance adding the code below through discord @Khan#8615

        [PluginReference] private Plugin StackModifier;

        private void Init()
        {
            Unsubscribe(nameof(OnItemSplit));
        }

        private void OnServerInitialized(bool initial)
        {
            if (StackModifier == null) 
                Subscribe(nameof(OnItemSplit));
        }

        private void OnPluginLoaded(Plugin name)
        {
            if (StackModifier != null && name.Name == StackModifier.Name) 
                Unsubscribe(nameof(OnItemSplit));
        }

        private void OnPluginUnloaded(Plugin name)
        {
            if (StackModifier != null && name.Name == StackModifier.Name) 
                Subscribe(nameof(OnItemSplit));
        }

@khan

Hi. Your tag isn't being accepted when I try to send the request.

I've recently been having issues with loss on splitting items as well lately.

This wasn't a thing in the past.

But I was thinking that maybe you could add something like a skin list to help counter this issue vs having to compensate for every conflicting plugin.

WAAcxWIQmmPRjJQ.jpg thepiercedweirdo

@khan

Hi. Your tag isn't being accepted when I try to send the request.

I've recently been having issues with loss on splitting items as well lately.

This wasn't a thing in the past.

But I was thinking that maybe you could add something like a skin list to help counter this issue vs having to compensate for every conflicting plugin.

You would only have a skin split issue due to plugin conflicts using the same hooks.
This thread is specific to a plugin conflict & how to resolve it. 

I suggest checking your console for errors

Also, in regards to friending me on discord, I assume you are trying to do with an @ when its just > Khan#8615

 

Booblej's issue was resolved in discord and the solution to his problem was posted here already as well for others to see.

48sju0wTJ8QVfRG.png

Understood. Yes. It's a hook conflict with all stack issues.

And big facepalm on the discord. Corrected and sent.

 

Locked automatically