Khaligufzel / Dimensionfall

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

Prevent chunk from alterating the map data #278

Closed snipercup closed 4 months ago

snipercup commented 4 months ago

Requires #277 Fixes #276

Because the chunk wasn't duplicating the mapdata when altering it, it was modifying the original map data. When you returned to the contenteditor after playing, any door you'd opened on the map would be applied to the map too. After saving the map in the content editor, these changes are also applied to the map file.

This pr fixes that by having the chunk duplicate the data from the map.