Skip to content

Commit 6e91aab

Browse files
committed
remove build tools
1 parent 548676f commit 6e91aab

File tree

4 files changed

+26
-34
lines changed

4 files changed

+26
-34
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ jobs:
2626
distribution: "zulu"
2727
java-version: 8
2828

29-
- name: Setup BuildTools
30-
run: |
31-
mkdir ~/buildtools
32-
cd ~/buildtools
33-
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -O BuildTools.jar
34-
java -jar BuildTools.jar --rev 1.8.8
35-
3629
- name: Gradle Build
3730
run: ./gradlew build
3831

example/bukkit/common/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ java {
88
}
99

1010
dependencies {
11-
compileOnly(libs.bukkit)
1211
compileOnly(libs.bukkit.api)
1312
}

example/bukkit/common/src/main/java/com/lunarclient/apollo/example/util/ItemUtil.java

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
*/
2424
package com.lunarclient.apollo.example.util;
2525

26-
import net.minecraft.server.v1_8_R3.NBTTagCompound;
2726
import org.bukkit.Material;
28-
import org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack;
2927
import org.bukkit.inventory.ItemStack;
3028
import org.bukkit.inventory.meta.ItemMeta;
3129

@@ -42,30 +40,31 @@ public static ItemStack itemWithName(Material material, String name) {
4240
}
4341

4442
public static ItemStack addTag(ItemStack item, String key, Object value) {
45-
net.minecraft.server.v1_8_R3.ItemStack nmsItem = CraftItemStack.asNMSCopy(item);
46-
NBTTagCompound tag = nmsItem.hasTag() ? nmsItem.getTag() : new NBTTagCompound();
47-
48-
NBTTagCompound lunarTag = tag.getCompound("lunar");
49-
if (lunarTag == null) {
50-
lunarTag = new NBTTagCompound();
51-
}
52-
53-
if (value instanceof Integer) {
54-
lunarTag.setInt(key, (Integer) value);
55-
} else if (value instanceof Double) {
56-
lunarTag.setDouble(key, (Double) value);
57-
} else if (value instanceof Float) {
58-
lunarTag.setFloat(key, (Float) value);
59-
} else if (value instanceof Boolean) {
60-
lunarTag.setBoolean(key, (Boolean) value);
61-
} else if (value instanceof String) {
62-
lunarTag.setString(key, (String) value);
63-
}
64-
65-
tag.set("lunar", lunarTag);
66-
nmsItem.setTag(tag);
67-
68-
return CraftItemStack.asBukkitCopy(nmsItem);
43+
// net.minecraft.server.v1_8_R3.ItemStack nmsItem = CraftItemStack.asNMSCopy(item);
44+
// NBTTagCompound tag = nmsItem.hasTag() ? nmsItem.getTag() : new NBTTagCompound();
45+
//
46+
// NBTTagCompound lunarTag = tag.getCompound("lunar");
47+
// if (lunarTag == null) {
48+
// lunarTag = new NBTTagCompound();
49+
// }
50+
//
51+
// if (value instanceof Integer) {
52+
// lunarTag.setInt(key, (Integer) value);
53+
// } else if (value instanceof Double) {
54+
// lunarTag.setDouble(key, (Double) value);
55+
// } else if (value instanceof Float) {
56+
// lunarTag.setFloat(key, (Float) value);
57+
// } else if (value instanceof Boolean) {
58+
// lunarTag.setBoolean(key, (Boolean) value);
59+
// } else if (value instanceof String) {
60+
// lunarTag.setString(key, (String) value);
61+
// }
62+
//
63+
// tag.set("lunar", lunarTag);
64+
// nmsItem.setTag(tag);
65+
//
66+
// return CraftItemStack.asBukkitCopy(nmsItem);
67+
return item;
6968
}
7069

7170
private ItemUtil() {

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pluginManagement {
1717
dependencyResolutionManagement {
1818
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
1919
repositories {
20+
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
2021
maven("https://repo.papermc.io/repository/maven-public/")
2122
maven("https://oss.sonatype.org/content/repositories/snapshots")
2223
maven("https://us-maven.pkg.dev/mw-lunarclient-maven-repo/public")

0 commit comments

Comments
 (0)