Added comments

This commit is contained in:
Fabrizio La Rosa 2020-06-18 16:15:59 +02:00 committed by Brianna
parent 4bb1bed1bb
commit 9ec971e219

View File

@ -1353,9 +1353,9 @@ public enum CompatibleMaterial {
* @return LegacyMaterial or null if none found
*/
public static CompatibleMaterial getMaterial(Block block) {
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_9)) {
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)) { // Flattening
return CompatibleMaterial.getMaterialFromNewBlock(block);
} else {
} else { // Pre-Flattening
if(block != null){
if (block.getData() != 0) {
for (CompatibleMaterial cm : CompatibleMaterial.values()) {