Skip to content

Commit

Permalink
Revert fix for #117 because it breaks bracket rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Jul 26, 2024
1 parent 7b49101 commit 760a33a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public interface IKineticCopycatBlockInstance {
ICopycatBlockEntity getBlockEntity();

default Material<RotatingData> getRotatingMaterial() {
RenderType type = RenderType.translucent(); // todo: find the correct render type
RenderLayer layer = RenderLayer.CUTOUT;
RenderType type = RenderType.translucent();
RenderLayer layer = RenderLayer.getLayer(type);
if (layer == null) layer = RenderLayer.TRANSPARENT;

// workaround for flywheel crash when transparent layer is used in batching backend
if (Backend.getBackendType() == BackendType.BATCHING && type == RenderType.translucent()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ default void initModel(ICopycatPartialModel model, String property) {
IMultiStateCopycatBlockEntity getBlockEntity();

default Material<RotatingData> getRotatingMaterial() {
RenderType type = RenderType.translucent(); // todo: find the correct render type
RenderLayer layer = RenderLayer.CUTOUT;
RenderType type = RenderType.translucent();
RenderLayer layer = RenderLayer.getLayer(type);
if (layer == null) layer = RenderLayer.TRANSPARENT;

// workaround for flywheel crash when transparent layer is used in batching backend
if (Backend.getBackendType() == BackendType.BATCHING && type == RenderType.translucent()) {
Expand Down

0 comments on commit 760a33a

Please sign in to comment.