Skip to content

Commit 350ec8f

Browse files
committed
fix #617 (ii): Added Health component to the created rubble
1 parent 62b07db commit 350ec8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/src/main/java/org/destinationsol/rubble/systems/RubbleCreationSystem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ private void buildRubblePieces(Position pos, Velocity vel, Angle angle, Size siz
145145
velocityComponent.velocity = velocity;
146146

147147
EntityRef entityRef = entitySystemManager.getEntityManager().createEntity(graphicsComponent, positionComponent,
148-
velocityComponent, angle, sizeComponent, new RubbleMesh());
148+
sizeComponent, angle, velocityComponent, new RubbleMesh(), health);
149+
149150
SolMath.free(velocity);
150151
entityRef.setComponent(new BodyLinked());
151152
}

0 commit comments

Comments
 (0)