Fix GRASS_PATH

This commit is contained in:
Fernando Pettinelli 2021-06-30 10:09:35 -04:00
parent 4c5a2b0615
commit 3dc2f5a0d3

View File

@ -678,7 +678,7 @@ public enum CompatibleMaterial {
GRANITE_WALL,
GRASS("LONG_GRASS", (byte) 1),
GRASS_BLOCK("GRASS"),
GRASS_PATH("GRASS_PATH"),
DIRT_PATH("GRASS_PATH"),
GRAVEL,
GRAY_BANNER("BANNER", (byte) 8),
GRAY_BED("BED", (byte) 7),
@ -1351,7 +1351,7 @@ public enum CompatibleMaterial {
this.legacy = legacyMaterial;
this.legacyData = legacyData == null ? 0 : legacyData;
this.legacyRequiresData = legacyData != null;
this.compatibleMaterial = LegacyMaterialAnalouge.lookupAnalouge(modern);
this.compatibleMaterial = LegacyMaterialAnalouge.lookupAnalouge(modern);
if (compatibleMaterial != null && ServerVersion.isServerVersionBelow(compatibleMaterial.versionLessThan)) {
// server older than this item: use a proxy