Skip to content

Commit 4a3b499

Browse files
committed
Add BlockCable#getAppearance for connected textures on facades
This adds basic support to facades on cables for mods that add connected texture support.
1 parent 59191a2 commit 4a3b499

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/org/cyclops/integrateddynamics/block/BlockCable.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ public boolean shouldDisplayFluidOverlay(BlockState state, BlockAndTintGetter wo
422422
return CableHelpers.getFacade(world, pos).isPresent();
423423
}
424424

425+
@Override
426+
public BlockState getAppearance(BlockState state, BlockAndTintGetter level, BlockPos pos, Direction side, @Nullable BlockState queryState, @Nullable BlockPos queryPos) {
427+
return CableHelpers.getFacade(level, pos).orElseGet(() -> super.getAppearance(state, level, pos, side, queryState, queryPos));
428+
}
429+
425430
/* --------------- Start IDynamicRedstone --------------- */
426431

427432
@SuppressWarnings("deprecation")

0 commit comments

Comments
 (0)