From 290dc4a8159667f9f090aca06861e063fa554e88 Mon Sep 17 00:00:00 2001 From: Luca <38906805+Luca-Guettinger@users.noreply.github.com> Date: Sun, 4 Oct 2026 22:37:34 +0200 Subject: [PATCH] Fix client kick when a part is added over a stale convertible block (#62) --- .../scala/codechicken/multipart/MultipartGenerator.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/scala/codechicken/multipart/MultipartGenerator.scala b/src/main/scala/codechicken/multipart/MultipartGenerator.scala index 9ab3894..d7e1a8b 100644 --- a/src/main/scala/codechicken/multipart/MultipartGenerator.scala +++ b/src/main/scala/codechicken/multipart/MultipartGenerator.scala @@ -81,12 +81,14 @@ object MultipartGenerator extends ScratchBitSet { pos: BlockCoord, part: TMultiPart ): TileMultipart = { - val (tile, converted) = TileMultipart.getOrConvertTile2(world, pos) + val (tile, converted) = + if (world.isRemote) (TileMultipart.getTile(world, pos), false) + else TileMultipart.getOrConvertTile2(world, pos) val bitset = setTraits(part, world.isRemote) var ntile = tile if (ntile != null) { - if (converted) { // perform client conversion + if (converted) { // server-side conversion, then tell the clients ntile.partList(0).invalidateConvertedTile() world.setBlock(pos.x, pos.y, pos.z, MultipartProxy.block, 0, 0) silentAddTile(world, pos, ntile)