Skip to content

Commit

Permalink
Fix position de la téléportation car il reste à 0 #12
Browse files Browse the repository at this point in the history
Ajout du jar dans Actions Github pour ne pas sortir de version à chaque fix.
  • Loading branch information
Euphillya committed Jan 20, 2024
1 parent b2b9ca3 commit 925f44f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ jobs:
- name: Permission gradlew
run: chmod +x gradlew
- name: Build Skyllia jar
run: ./gradlew shadowJar
run: ./gradlew shadowJar
- name: Upload Snapshot jar
uses: actions/upload-artifact@v2
with:
name: Skyllia-Build
path: build/libs/*
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public boolean onCommand(@NotNull Main plugin, @NotNull CommandSender sender, @N
}

Location center = RegionUtils.getCenterRegion(Bukkit.getWorld(schematicWorld.worldName()), island.getPosition().regionX(), island.getPosition().regionZ());
center.setY(schematicWorld.height()); // Fix
this.pasteSchematic(plugin, island, center, schematicWorld);
this.setFirstHome(island, center);
this.restoreGameMode(plugin, player, center);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public static Type worldEditVersion() {

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

0 comments on commit 925f44f

Please sign in to comment.