#1275: Add internal ItemType and BlockType, delegate Material methods to them

By: Jishuna <joshl5324@gmail.com>
Also-by: Bjarne Koll <lynxplay101@gmail.com>
Also-by: DerFrZocker <derrieple@gmail.com>
Also-by: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-05-05 10:08:54 +10:00
parent b4e6cc4dce
commit 8f55ed539f
14 changed files with 642 additions and 47 deletions

View File

@@ -192,7 +192,7 @@ public final class CraftLegacy {
}
}
if (mappedData == null && material.isBlock()) {
if (mappedData == null) {
// Try exact match first
IBlockData iblock = materialToData.get(materialData);
if (iblock != null) {