Fix materials in 1.12- being completely busted

This commit is contained in:
Esophose 2019-08-15 02:01:25 -06:00
parent 344911bfca
commit 662c248656
2 changed files with 10 additions and 12 deletions

View File

@ -1147,18 +1147,16 @@ public enum Materials {
// Try 1.12- names
for (Materials mat : Materials.values()) {
if (name.equalsIgnoreCase(mat.name()))
if (name.equalsIgnoreCase(mat.old12Mat)) {
if (pmat == null) {
pmat = mat;
}
if (((byte) mat.data) == data) {
cachedSearch.put(mat.old12Mat + "," + data, mat);
return mat;
}
if (name.equalsIgnoreCase(mat.old12Mat)) {
if (pmat == null) {
pmat = mat;
}
if (((byte) mat.data) == data) {
cachedSearch.put(mat.old12Mat + "," + data, mat);
return mat;
}
}
}
return pmat;

View File

@ -1,7 +1,7 @@
allprojects {
apply plugin: 'java'
group = 'com.goodandevil.skyblock'
version = 'Build-78.3'
version = 'Build-78.4'
}
subprojects {