build: use manually uploaded artifact for CMI-API

This commit is contained in:
Christian Koop 2024-06-22 18:44:40 +02:00
parent f05ca97af3
commit 64e28e7905
No known key found for this signature in database
GPG Key ID: 6A4A09E8ED946113
3 changed files with 12 additions and 4 deletions

View File

@ -418,9 +418,16 @@
</dependency>
<dependency>
<groupId>com.github.Zrips</groupId>
<groupId>CMI-API</groupId>
<artifactId>CMI-API</artifactId>
<version>7.6.2.0</version>
<version>9.7.4.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.Zrips</groupId>
<artifactId>CMILib</artifactId>
<version>1.4.7.4</version>
<scope>provided</scope>
</dependency>

View File

@ -4,6 +4,7 @@ import com.Zrips.CMI.CMI;
import com.Zrips.CMI.Modules.Holograms.CMIHologram;
import com.Zrips.CMI.Modules.Holograms.HologramManager;
import com.craftaro.core.hooks.hologram.HologramHook;
import net.Zrips.CMILib.Container.CMILocation;
import org.bukkit.Location;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
@ -56,7 +57,7 @@ public class CmiHologramHook extends HologramHook {
throw new IllegalStateException("Cannot create hologram that already exists: " + getHologramName(id));
}
CMIHologram hologram = new CMIHologram(getHologramName(id), getNormalizedLocation(location));
CMIHologram hologram = new CMIHologram(getHologramName(id), new CMILocation(getNormalizedLocation(location)));
hologram.setLines(lines);
this.cmiHologramManager.addHologram(hologram);
hologram.update();

View File

@ -172,7 +172,7 @@
</repository>
<repository>
<id>third party</id>
<id>songoda-third-party</id>
<url>https://repo.songoda.com/repository/third-party/</url>
</repository>
</repositories>