limoka / DSP-Mods

An example how to add a custom model with your mesh and animations
MIT License
32 stars 10 forks source link

[BUG] - Drag Remove Belts with FastDelete Mode Got A Bug #75

Open zxcvbnm3057 opened 10 months ago

zxcvbnm3057 commented 10 months ago

Belts connected to transport station cannot just remove with set factory.entityPool[entityId].beltId = 0; on https://github.com/kremnev8/DSP-Mods/blob/14cc3f72899063227655c839824cdf99c869198f/Mods/BlueprintTweaks/DragRemove/FastRemoveHelper.cs#L447 .

It need to reset specific StationComponents.SlotData too. Otherwise, the logistics station will output to an unconnected belt after belt id recycled.

Please check StationComponent.UpdateOutputSlots and PlanetFactory.ApplyEntityDisconnection for more information and fix it.

zxcvbnm3057 commented 10 months ago

There are some screen recorde but they are all too big for issue upload. Please leave an email address if you need that.