From 3b5270f3006e4b77c06bd08c3014e139a99c316f Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 7 Apr 2020 16:11:51 -0400 Subject: [PATCH] Support Structures from 1.15.2 in 1.8.8 and vise versa. --- .../com/songoda/skyblock/utils/world/block/BlockData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java b/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java index 810bda98..5fc9c006 100644 --- a/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java +++ b/src/main/java/com/songoda/skyblock/utils/world/block/BlockData.java @@ -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) {