mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 12:35:12 +01:00
Added comments
This commit is contained in:
parent
4bb1bed1bb
commit
9ec971e219
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user