Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Items can be opened only once in the contenteditor #204

Closed snipercup closed 3 months ago

snipercup commented 3 months ago

This PR makes sure that only one tab can be open for an entity. If an open tab in the contenteditor already exists for an item you activate, it will switch to that tab.

This could cause a conflict if you have a chair item and a chair furniture, so we might account for that in the future. If we encounter this, all you need to do is make sure the id's differ slightly.