mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-05 03:12:38 +01:00
Added Backup Rendering If A Size Is Not Present
This commit is contained in:
parent
2b76e8d7b3
commit
08c000b8ba
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,7 @@ import com.jozufozu.flywheel.util.AnimationTickHolder;
|
|||
import com.jozufozu.flywheel.util.transform.TransformStack;
|
||||
import com.mojang.blaze3d.vertex.PoseStack;
|
||||
import com.mojang.math.Vector3f;
|
||||
import com.simibubi.create.content.logistics.trains.BogeyRenderer;
|
||||
import com.simibubi.create.foundation.utility.Couple;
|
||||
import com.simibubi.create.foundation.utility.Iterate;
|
||||
|
||||
|
@ -99,8 +100,10 @@ public class CarriageContraptionInstance extends EntityInstance<CarriageContrapt
|
|||
return;
|
||||
|
||||
bogeys.forEach(instance -> {
|
||||
if (instance != null)
|
||||
if (instance != null) {
|
||||
instance.commonRenderer.ifPresent(BogeyRenderer::remove);
|
||||
instance.renderer.remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue