Skip to content

Commit 62677a4

Browse files
committed
perf(drawables): don't fetch DrawableManager from the context unnecessarily
1 parent e789121 commit 62677a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/main/java/org/destinationsol/game/drawables/DrawableObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void update(SolGame game) {
6363
Planet planet = game.getPlanetManager().getNearestPlanet();
6464
Vector2 planetPosition = planet.getPosition();
6565
float planetGroundHeight = planet.getGroundHeight();
66-
DrawableManager drawableManager = game.getContext().get(DrawableManager.class);
66+
DrawableManager drawableManager = game.getDrawableManager();
6767
for (Drawable drawable : drawables) {
6868
if (!(drawable instanceof RectSprite)) {
6969
continue;

0 commit comments

Comments
 (0)