Skip to content

Commit 99737fc

Browse files
author
Julien Poulton
committed
Merge branch '4221-broken-buffered-groups' into 'master'
[FIX][SDK] fixed buffered groups See merge request codingame/game-engine!124
2 parents 78385ba + e593a48 commit 99737fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/modules/entities/src/main/resources/view/entity-module/GraphicEntityModule.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CommandParser } from './CommandParser.js'
22
import { fitAspectRatio } from '../core/utils.js'
33
import { WIDTH, HEIGHT } from '../core/constants.js'
4-
import { Group } from './Group.js'
4+
import { ContainerBasedEntity } from './ContainerBasedEntity.js'
55

66
export const api = {}
77

@@ -157,7 +157,7 @@ export class GraphicEntityModule {
157157
resortTree () {
158158
// Groups
159159
this.entities.forEach(e => {
160-
if (e instanceof Group) {
160+
if (e instanceof ContainerBasedEntity) {
161161
this.sortChildren(e.childrenContainer)
162162
}
163163
})
@@ -170,7 +170,7 @@ export class GraphicEntityModule {
170170

171171
// Groups
172172
this.entities.forEach(e => {
173-
if (e instanceof Group) {
173+
if (e instanceof ContainerBasedEntity) {
174174
e.childrenContainer.removeChildren()
175175
e.currentState.children.forEach(id => {
176176
const child = this.entities.get(id)

0 commit comments

Comments
 (0)