redesign for Structures

This commit is contained in:
Brian Neumann-Fopiano
2026-05-29 19:54:10 -04:00
parent 821cc027db
commit 4bc1913f03
56 changed files with 4811 additions and 44 deletions
+1 -1
View File
@@ -21,5 +21,5 @@ repositories {
dependencies {
implementation('org.ow2.asm:asm:9.8')
implementation('com.github.VolmitSoftware:NMSTools:c88961416f')
implementation('io.papermc.paperweight:paperweight-userdev:2.0.0-beta.18')
implementation('io.papermc.paperweight:paperweight-userdev:2.0.0-beta.21')
}
+4 -1
View File
@@ -139,7 +139,10 @@ public class NMSBinding implements Plugin<Project> {
}
String[] parts = trimmed.split("\\.");
return new int[]{Integer.parseInt(parts[1]), Integer.parseInt(parts[2])};
if ("1".equals(parts[0])) {
return new int[]{Integer.parseInt(parts[1]), Integer.parseInt(parts[2])};
}
return new int[]{Integer.parseInt(parts[0]), Integer.parseInt(parts[1])};
}
private static <T extends Named> T named(ObjectFactory objects, Class<T> type, String name) {