Skip to content

Commit

Permalink
Rename implementation_1_19 to implementation_19_4
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Jun 21, 2023
1 parent 7ab3249 commit 56309fc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

import static de.oliver.fancylib.ReflectionUtils.getValue;

public final class Hologram1_19 extends Hologram {
public final class Hologram1_19_4 extends Hologram {

@Nullable
private TextDisplay display;


public Hologram1_19(@NotNull final HologramData data) {
public Hologram1_19_4(@NotNull final HologramData data) {
super(data);
}

Expand Down
2 changes: 1 addition & 1 deletion implementation_1_20/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}


val minecraftVersion = "1.20.1"
val minecraftVersion = "1.20"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ dependencies {
compileOnly("io.papermc.paper:paper-api:$minecraftVersion-R0.1-SNAPSHOT")

implementation(project(":api"))
implementation(project(":implementation_1_19", configuration = "reobf"))
implementation(project(":implementation_1_20", configuration = "reobf"))
implementation(project(":implementation_1_19_4", configuration = "reobf"))

implementation("de.oliver:FancyLib:1.0.2")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import de.oliver.fancyholograms.commands.CommandHologram;
import de.oliver.fancyholograms.listeners.NpcListener;
import de.oliver.fancyholograms.listeners.PlayerListener;
import de.oliver.fancyholograms.version.Hologram1_19;
import de.oliver.fancyholograms.version.Hologram1_19_4;
import de.oliver.fancyholograms.version.Hologram1_20;
import de.oliver.fancylib.FancyLib;
import de.oliver.fancylib.Metrics;
Expand Down Expand Up @@ -132,9 +132,9 @@ public void onDisable() {
private @Nullable Function<HologramData, Hologram> resolveHologramAdapter() {
final var version = Bukkit.getMinecraftVersion();

return switch (version.substring(0, Math.min(4, version.length()))) {
case "1.19" -> Hologram1_19::new;
case "1.20" -> Hologram1_20::new;
return switch (version) {
case "1.20", "1.20.1" -> Hologram1_20::new;
case "1.19.4" -> Hologram1_19_4::new;
default -> null;
};
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rootProject.name = "FancyHolograms"

include("api")
include("implementation_1_19")
include("implementation_1_19_4")
include("implementation_1_20")

include("plugin")

0 comments on commit 56309fc

Please sign in to comment.