Skip to content

Commit bc2a7b3

Browse files
authored
Merge pull request #653 from Mystic-Slice/RubbleHealthComponent
Rubble is mortal now!
2 parents 9e0f8f0 + 350ec8f commit bc2a7b3

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)