Skip to content

Commit

Permalink
1.16 fix for arclight
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinDaGame committed May 27, 2023
1 parent f458fa9 commit 7f5766b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ public List<String> getOnlinePlayerNames() {

@Override
public IMaterial getMaterial(VoxelMaterial material) {
Material mat = Material.matchMaterial(material.getKey());
if (mat != null) return new SpigotMaterial(mat);
return null;
Material mat = material.getNamespace().equals("minecraft") ?
Material.getMaterial(material.getKey().toUpperCase()) :
Material.getMaterial(material.getNamespace().toUpperCase() + "_" + material.getKey().toUpperCase()); // In case of arclight, which uses the syntax "<NAMESPACE>_<KEY>"
return mat == null ? null : new SpigotMaterial(mat);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/voxel-core.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ java {
}

group = "com.github.kevindagame"
version = "8.3.0"
version = "8.3.1"
//java.sourceCompatibility = JavaVersion.VERSION_16

tasks.withType<JavaCompile>() {
Expand Down

0 comments on commit 7f5766b

Please sign in to comment.