Jump to content

unstacking stacks bug

Pending 1.0.0

Theswingingturtle

Posted

Hello, seems like if you're stacking or have a stack of any of the pro items, then unstack them they become Large Presents instead. Happens to all pro items.

 

Doesn't matter if stack is found or if players stacked it, unstacking always convert them to regular Large Presents but with the custom icon still

  • Curator
imthenewguy

Posted

Usually that's handled by the plugin that handles your stacking (because large presents cant normally stack).

What stack plugin do you use?

Theswingingturtle

Posted

18 hours ago, imthenewguy said:

Usually that's handled by the plugin that handles your stacking (because large presents cant normally stack).

What stack plugin do you use?

StackSizeController , umod basic one.

  • Curator
imthenewguy

Posted

8 hours ago, Theswingingturtle said:

it says it conflicts with other stack plugins, and this one doesn't offer a stack modifier, or am I misreading it?

Give it a try. If it doesn't work, delete it.

Theswingingturtle

Posted (edited)

It's working correct with the stacks now, thank you 🙂
Found another bug,
Consuming/unwrapping in a stack consumed all in that stack, was able to fix it to change this:
 

void ConsumeItem(BasePlayer player, Item item)
        {
            if (item == null) return;
            item.RemoveFromContainer();
            item.Remove();            ItemManager.DoRemoves();
            
        }

to this:
 

void ConsumeItem(BasePlayer player, Item item)
{
    if (item == null) return;

    if (item.amount > 1)
    {
        item.amount--;
        item.MarkDirty();
        return;
    }

    item.Remove();
}

 

Edited by Theswingingturtle

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.8k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.