otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.55k stars 1.04k forks source link

Dont recreate stackables every move #4761

Open nekiro opened 1 week ago

nekiro commented 1 week ago

Pull Request Prelude

Changes Proposed

Don't recreate stackables on every move, create new stackables only when splitting the stack.

Issues addressed: Stackable items are recreated even when they shouldn't, if you move a full stack of stackable item, why would you create a new item and delete the old one? This seems pretty wasteful and unnecessary.