Skip to content

Commit

Permalink
cleanup for release
Browse files Browse the repository at this point in the history
  • Loading branch information
CubBossa committed May 30, 2024
1 parent a67f598 commit 83a31c4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Compiled class file
*.class

# Jooq
/pathfinder-core/src/main/jooq/

# Log file
*.log

Expand Down Expand Up @@ -140,4 +143,4 @@ gradle-app.setting
*.hprof

### Run-Task ###
run/
run/
2 changes: 2 additions & 0 deletions pathfinder-bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ tasks {
}

relocate("org.bstats", "bstats")
relocate("net.kyori", "kyori")
relocate("com.google.gson", "gson")
relocate("xyz.xenondevs.particle", "particle")
relocate("dev.jorel.commandapi", "commandapi")
relocate("de.cubbossa.translations", "translations")
Expand Down
5 changes: 0 additions & 5 deletions pathfinder-editmode/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ dependencies {

// Client ArmorStands
implementation("de.cubbossa:ClientEntities:1.3.2")
implementation("com.github.retrooper.packetevents:spigot:2.3.1-SNAPSHOT")
}

tasks {
Expand All @@ -76,8 +75,6 @@ tasks {
include(dependency("xyz.xenondevs:particle:.*"))
include(dependency("de.tr7zw:item-nbt-api:.*"))
include(dependency("de.item-nbt-api:.*"))
include(dependency("com.github.retrooper.packetevents:spigot:.*"))
include(dependency("com.github.retrooper.packetevents:api:.*"))
}

fun relocate(from: String, to: String) {
Expand All @@ -88,8 +85,6 @@ tasks {
relocate("de.cubbossa.cliententities", "cliententities")
relocate("xyz.xenondevs.particle", "particle")
relocate("de.tr7zw.changeme.nbtapi", "nbtapi")
relocate("com.github.retrooper.packetevents", "packetevents.api")
relocate("io.github.retrooper.packetevents", "packetevents.impl")
}
test {
useJUnitPlatform()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.cubbossa.pathfinder.editmode;

import com.github.retrooper.packetevents.PacketEvents;
import de.cubbossa.cliententities.lib.packetevents.api.PacketEvents;
import de.cubbossa.cliententities.lib.packetevents.impl.factory.spigot.SpigotPacketEventsBuilder;
import de.cubbossa.menuframework.GUIHandler;
import de.cubbossa.pathfinder.AbstractPathFinder;
import de.cubbossa.pathfinder.BukkitPathFinder;
Expand All @@ -9,7 +10,6 @@
import de.cubbossa.pathfinder.PathFinderExtensionBase;
import de.cubbossa.pathfinder.PathFinderPlugin;
import de.cubbossa.pathfinder.misc.NamespacedKey;
import io.github.retrooper.packetevents.factory.spigot.SpigotPacketEventsBuilder;
import org.jetbrains.annotations.NotNull;
import org.pf4j.Extension;

Expand All @@ -25,8 +25,6 @@ public NamespacedKey getKey() {
@Override
public void onLoad(PathFinder pathPlugin) {
if (pathPlugin instanceof BukkitPathFinder bukkitPathFinder) {
de.cubbossa.cliententities.lib.packetevents.api.PacketEvents.setAPI(de.cubbossa.cliententities.lib.packetevents.impl.factory.spigot.SpigotPacketEventsBuilder
.build(bukkitPathFinder.getJavaPlugin()));
PacketEvents.setAPI(SpigotPacketEventsBuilder.build(bukkitPathFinder.getJavaPlugin()));
PacketEvents.getAPI().getSettings()
.checkForUpdates(true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.cubbossa.pathfinder.editmode.renderer;

import com.github.retrooper.packetevents.protocol.particle.type.ParticleTypes;
import de.cubbossa.cliententities.lib.packetevents.api.protocol.particle.type.ParticleTypes;
import de.cubbossa.cliententities.lib.packetevents.impl.util.SpigotConversionUtil;
import de.cubbossa.pathfinder.PathFinder;
import de.cubbossa.pathfinder.PathFinderConfig;
import de.cubbossa.pathfinder.PathFinderConfigImpl;
Expand All @@ -16,7 +17,6 @@
import de.cubbossa.pathfinder.util.FutureUtils;
import de.cubbossa.pathfinder.util.LerpUtils;
import de.cubbossa.pathfinder.util.MultiMap;
import io.github.retrooper.packetevents.util.SpigotConversionUtil;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
Expand Down

0 comments on commit 83a31c4

Please sign in to comment.