SteamWar/BauSystem2.0
Archiviert
12
0

Hotfix StairsAttribute
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-12-08 20:50:08 +01:00
Ursprung b90facb7d7
Commit fd98aa1b69

Datei anzeigen

@ -38,13 +38,13 @@ public class StairsAttribute implements BlockAttribute<Stairs> {
@Override
public void copy(List<String> attributes, Stairs blockData) {
attributes.add(attribute + blockData.getShape().name());
attributes.add(attribute + blockData.getShape().name().toLowerCase());
}
@Override
public void paste(Set<String> attributes, Stairs blockData) {
for (Stairs.Shape shape : Stairs.Shape.values()) {
if (attributes.contains(attribute + shape.name())) {
if (attributes.contains(attribute + shape.name().toLowerCase())) {
blockData.setShape(shape);
return;
}