Skip to content

Commit 925f44f

Browse files
committed
Fix position de la téléportation car il reste à 0 #12
Ajout du jar dans Actions Github pour ne pas sortir de version à chaque fix.
1 parent b2b9ca3 commit 925f44f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/test-build.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ jobs:
1818
- name: Permission gradlew
1919
run: chmod +x gradlew
2020
- name: Build Skyllia jar
21-
run: ./gradlew shadowJar
21+
run: ./gradlew shadowJar
22+
- name: Upload Snapshot jar
23+
uses: actions/upload-artifact@v2
24+
with:
25+
name: Skyllia-Build
26+
path: build/libs/*

plugin/src/main/java/fr/euphyllia/skyllia/commands/subcommands/CreateSubCommand.java

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public boolean onCommand(@NotNull Main plugin, @NotNull CommandSender sender, @N
8080
}
8181

8282
Location center = RegionUtils.getCenterRegion(Bukkit.getWorld(schematicWorld.worldName()), island.getPosition().regionX(), island.getPosition().regionZ());
83+
center.setY(schematicWorld.height()); // Fix
8384
this.pasteSchematic(plugin, island, center, schematicWorld);
8485
this.setFirstHome(island, center);
8586
this.restoreGameMode(plugin, player, center);

plugin/src/main/java/fr/euphyllia/skyllia/utils/WorldEditUtils.java

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public static Type worldEditVersion() {
5757

5858
public static void pasteSchematicWE(InterneAPI api, Location loc, SchematicWorld schematicWorld) {
5959
try {
60-
loc.setY(schematicWorld.height());
6160
File file = new File(api.getPlugin().getDataFolder() + File.separator + schematicWorld.schematicFile());
6261
ClipboardFormat format = cachedIslandSchematic.getOrDefault(file, ClipboardFormats.findByFile(file));
6362
try (ClipboardReader reader = format.getReader(new FileInputStream(file))) {

0 commit comments

Comments
 (0)