9
0
mirror of https://github.com/Auxilor/Reforges.git synced 2026-01-04 15:41:40 +00:00

Added serializeBack to reforge arg parser

This commit is contained in:
Auxilor
2022-03-27 13:28:59 +01:00
parent f86fb4fd9d
commit 5a74db19d1
3 changed files with 10 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ allprojects {
}
dependencies {
compileOnly 'com.willfp:eco:6.23.0'
compileOnly 'com.willfp:eco:6.31.0'
implementation 'com.willfp:libreforge:3.28.0'
compileOnly 'org.jetbrains:annotations:23.0.0'

View File

@@ -97,8 +97,9 @@ public class ReforgesPlugin extends LibReforgePlugin {
}
@Override
@NotNull
public String getMinimumEcoVersion() {
return "6.19.0";
return "6.31.0";
}
/**

View File

@@ -33,4 +33,10 @@ class ReforgeArgParser : LookupArgParser {
reforge == ReforgeUtils.getReforge(testMeta)
}
}
}
override fun serializeBack(meta: ItemMeta): String? {
val reforge = ReforgeUtils.getReforge(meta) ?: return null
return "reforge:${reforge.id}"
}
}