fix: typo

This commit is contained in:
2025-05-05 11:02:29 +02:00
parent 49bdbc989f
commit f7da8575d5

View File

@@ -178,7 +178,7 @@ public enum Item implements Buildable {
@Getter
private final String name;
private final boolean isPLaceable;
private final boolean isPlaceable;
@Getter
private final int price;
@@ -188,17 +188,17 @@ public enum Item implements Buildable {
@Getter
private Function<Game, Boolean> canBeBoughtFunction;
Item(String name, boolean isPLaceable, int price) {
Item(String name, boolean isPlaceable, int price) {
this.name = name;
this.isPLaceable = isPLaceable;
this.canBeBuiltFunction = ignored -> isPLaceable;
this.isPlaceable = isPlaceable;
this.canBeBuiltFunction = ignored -> isPlaceable;
this.price = price;
this.canBeBoughtFunction = ignored -> true;
}
@Override
public boolean canBuild(Game game) {
if (!isPLaceable) {
if (!isPlaceable) {
return false;
}
return canBeBuiltFunction.apply(game);