fix: correction bug

This commit is contained in:
2025-12-19 16:59:57 +01:00
parent 25c3e8dbd7
commit 1bbccc4acc
8 changed files with 56 additions and 64 deletions

View File

@@ -2,7 +2,7 @@ package model.car;
import java.awt.Color;
import model.map.Map;
import model.Game;
public abstract class CarDecorator implements Car {
protected final Car car;
@@ -77,7 +77,7 @@ public abstract class CarDecorator implements Car {
}
@Override
public void setMap(Map map) {
car.setMap(map);
public void accept(Game game) {
car.accept(game);
}
}