diff --git a/src/main/kotlin/net/shadowfacts/phycon/network/DeviceBlockEntity.kt b/src/main/kotlin/net/shadowfacts/phycon/network/DeviceBlockEntity.kt index 9760b38..03850b6 100644 --- a/src/main/kotlin/net/shadowfacts/phycon/network/DeviceBlockEntity.kt +++ b/src/main/kotlin/net/shadowfacts/phycon/network/DeviceBlockEntity.kt @@ -161,7 +161,9 @@ abstract class DeviceBlockEntity(type: BlockEntityType<*>): BlockEntity(type), } fun onBreak() { - sendPacket(DeviceRemovedPacket(this)) + if (!world!!.isClient) { + sendPacket(DeviceRemovedPacket(this)) + } } data class PendingPacket(