fix: release PSH lock when failed to open

This commit is contained in:
xtex 2023-07-24 11:26:57 +08:00
parent 680d4d76e1
commit 1841e71ff8
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -50,6 +50,7 @@ data class ClientboundPSHLockResultPacket(val pos: BlockPos, val result: Boolean
) )
} catch (e: Throwable) { } catch (e: Throwable) {
Quaedam.logger.error("Failed to open projection shell screen", e) Quaedam.logger.error("Failed to open projection shell screen", e)
ProjectionShell.channel.sendToServer(ServerboundPSHLockReleasePacket(pos))
} }
} }
} else { } else {