mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-30 07:27:29 +02:00
Support Structures from 1.15.2 in 1.8.8 and vise versa.
This commit is contained in:
parent
9719a322b8
commit
3b5270f300
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user