Fix piston mapping getting with blockconnections disabled

This commit is contained in:
KennyTV 2020-09-06 09:03:18 +02:00
parent 72a070da3e
commit c6d8a83ac9
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -40,7 +40,7 @@ public class PistonHandler implements BackwardsBlockEntityProvider.BackwardsBloc
addEntries(entry.getKey(), entry.getValue());
}
} else {
JsonObject mappings = MappingDataLoader.getMappingsCache().get("mapping-1.13.json").getAsJsonObject("blocks");
JsonObject mappings = MappingDataLoader.getMappingsCache().get("mapping-1.13.json").getAsJsonObject("blockstates");
for (Map.Entry<String, JsonElement> blockState : mappings.entrySet()) {
String key = blockState.getValue().getAsString();
if (!key.contains("piston")) continue;