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