mirror of
https://github.com/motajs/template.git
synced 2026-09-13 18:38:50 +08:00
fix(01-09): retain point-event-only map layers
- Treat non-empty pointEvents as valid layer save content - Preserve layer z-index aggregation for compressed map saves
This commit is contained in:
parent
98d5958880
commit
3df0b2afc5
@ -183,6 +183,7 @@ export class GameMap extends Hookable<IGameMapHooks> implements IGameMap {
|
||||
if (save.rows && save.rows.size > 0) return false;
|
||||
if (save.staticBlocks && save.staticBlocks.size > 0) return false;
|
||||
if (save.dynamicBlocks && save.dynamicBlocks.size > 0) return false;
|
||||
if (save.pointEvents && save.pointEvents.size > 0) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user