Skip to content

Commit 7536489

Browse files
committed
Merge branch 'main' of github.com:openpatch/scratch-for-java
2 parents 26130e1 + fa82a6f commit 7536489

File tree

7 files changed

+230
-315
lines changed

7 files changed

+230
-315
lines changed

.github/workflows/javadoc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/setup-java@v2
2525
with:
2626
distribution: 'temurin'
27-
java-version: '17'
27+
java-version: '21'
2828
- name: Build with Maven
2929
run: ant -f resources/build.xml
3030
- name: Setup Pages
@@ -35,4 +35,4 @@ jobs:
3535
path: distribution/javadoc
3636
- name: Deploy to GitHub Pages
3737
id: deployment
38-
uses: actions/deploy-pages@v4
38+
uses: actions/deploy-pages@v4

examples/java/Tiled/World.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ public void loadMap(String mapFile) {
6262
}
6363
} else if ("enemy".equals(object.type)) {
6464
switch (object.name) {
65-
case "bamboo": {
66-
this.add(new Bamboo(object.x, object.y));
67-
break;
68-
}
65+
case "bamboo":
66+
{
67+
this.add(new Bamboo(object.x, object.y));
68+
break;
69+
}
6970
}
7071
}
7172
}

0 commit comments

Comments
 (0)