Restore replacing block with cable parts (#1654)

This commit is contained in:
attempt0 authored and GitHub committed 2026-10-01 09:27:23 +02:00
1 parent ac1c412e94
commit be4e421073
3 files changed
+25 -47

No files matched your search

@@ -108,6 +108,10 @@ public class RendererCable extends AbstractRendererPreview implements IRenderPre
private boolean handleNullTileEntity(boolean isDense, TileEntity neighborTe, World world, ForgeDirection side,
int x, int y, int z) {
if (canPlaceBlockAt(world, x, y, z)) {
setPreviewOffset(x, y, z, ForgeDirection.UNKNOWN);
return true;
}
setPreviewOffset(x, y, z, side);
if (neighborTe instanceof IPartHost partHost) {
IPart centerPart = partHost.getPart(ForgeDirection.UNKNOWN);