mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 13:28:00 +01:00
Bump Flywheel version
- Small tweak to contraption layer creation
This commit is contained in:
parent
b81fc66145
commit
3e6e8c406b
2 changed files with 6 additions and 3 deletions
|
@ -16,7 +16,7 @@ cursegradle_version = 1.4.0
|
||||||
|
|
||||||
# dependency versions
|
# dependency versions
|
||||||
registrate_version = 1.0.10
|
registrate_version = 1.0.10
|
||||||
flywheel_version = 1.16-0.2.0.34
|
flywheel_version = 1.16-0.2.0.41
|
||||||
jei_version = 7.7.1.116
|
jei_version = 7.7.1.116
|
||||||
|
|
||||||
# curseforge information
|
# curseforge information
|
||||||
|
|
|
@ -125,10 +125,13 @@ public class RenderedContraption extends ContraptionRenderInfo {
|
||||||
for (RenderType layer : blockLayers) {
|
for (RenderType layer : blockLayers) {
|
||||||
Supplier<IModel> layerModel = () -> new WorldModel(renderWorld, layer, contraption.getBlocks().values());
|
Supplier<IModel> layerModel = () -> new WorldModel(renderWorld, layer, contraption.getBlocks().values());
|
||||||
|
|
||||||
|
ModelRenderer renderer;
|
||||||
if (Backend.getInstance().compat.vertexArrayObjectsSupported())
|
if (Backend.getInstance().compat.vertexArrayObjectsSupported())
|
||||||
renderLayers.put(layer, new ArrayModelRenderer(layerModel));
|
renderer = new ArrayModelRenderer(layerModel);
|
||||||
else
|
else
|
||||||
renderLayers.put(layer, new ModelRenderer(layerModel));
|
renderer = new ModelRenderer(layerModel);
|
||||||
|
|
||||||
|
renderLayers.put(layer, renderer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue