Support Structures from 1.15.2 in 1.8.8 and vise versa.

This commit is contained in:
Brianna 2020-04-07 16:11:51 -04:00
parent 9719a322b8
commit 3b5270f300

View File

@ -1,7 +1,6 @@
package com.songoda.skyblock.utils.world.block;
import com.songoda.core.compatibility.CompatibleMaterial;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.Material;
import org.bukkit.SkullType;
@ -65,7 +64,8 @@ public class BlockData {
}
public String getMaterial() {
return this.material;
CompatibleMaterial material = CompatibleMaterial.getMaterial(this.material);
return material == null ? this.material : CompatibleMaterial.getMaterial(this.material).getMaterial().name();
}
public void setMaterial(Material material) {